This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
forked from jhoblitt/puppet-nsstools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modernize Gemfile/Rakefile/spec_helper boilerplate
- Loading branch information
Joshua Hoblitt
committed
Feb 10, 2014
1 parent
991b4c7
commit 729396f
Showing
3 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
source :rubygems | ||
|
||
group :development, :test do | ||
gem 'puppetlabs_spec_helper', :require => false | ||
end | ||
source 'https://rubygems.org' | ||
|
||
if puppetversion = ENV['PUPPET_GEM_VERSION'] | ||
gem 'puppet', puppetversion, :require => false | ||
else | ||
gem 'puppet', :require => false | ||
end | ||
|
||
gem 'rake', :require => false | ||
gem 'puppetlabs_spec_helper', :require => false | ||
gem 'puppet-lint', :require => false | ||
gem 'puppet-syntax', :require => false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
require 'rubygems' | ||
require 'puppetlabs_spec_helper/rake_tasks' | ||
require 'rake/clean' | ||
require 'puppet-syntax/tasks/puppet-syntax' | ||
require 'puppet-lint/tasks/puppet-lint' | ||
|
||
CLEAN.include('spec/fixtures/', 'spec/reports') | ||
PuppetSyntax.exclude_paths = ['spec/fixtures/**/*'] | ||
#PuppetLint.configuration.send('disable_class_inherits_from_params_class') | ||
#PuppetLint.configuration.send('disable_variable_scope') | ||
PuppetLint.configuration.ignore_paths = [ | ||
'pkg/**/*.pp', | ||
'spec/**/*.pp', | ||
'tests/**/*.pp', | ||
] | ||
|
||
task :spec => [:spec_prep] | ||
task :default => [ | ||
:syntax, | ||
:lint, | ||
:spec, | ||
] | ||
|
||
desc "Run all tasks (spec)" | ||
task :all => [ :spec ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
require 'rubygems' | ||
require 'puppetlabs_spec_helper/module_spec_helper' |