Remove validate task from Rakefile
As of release 0.6.0 puppetlabs_spec_helper now contains a validate task in puppetlabs_spec_helper/rake_tasks, so writing it in our own Rakefile is unnecessary. Change-Id: I8250c2fc7621fe4233c2bc53e6770f69a84188eb
This commit is contained in:
13
Rakefile
13
Rakefile
@@ -5,16 +5,3 @@ require 'puppet-lint/tasks/puppet-lint'
|
||||
PuppetLint.configuration.fail_on_warnings = true
|
||||
PuppetLint.configuration.send('disable_80chars')
|
||||
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
|
||||
|
||||
desc "Validate manifests, templates, and ruby files"
|
||||
task :validate do
|
||||
Dir['manifests/**/*.pp'].each do |manifest|
|
||||
sh "puppet parser validate --noop #{manifest}"
|
||||
end
|
||||
Dir['spec/**/*.rb','lib/**/*.rb'].each do |ruby_file|
|
||||
sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
|
||||
end
|
||||
Dir['templates/**/*.erb'].each do |template|
|
||||
sh "erb -P -x -T '-' #{template} | ruby -c"
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user