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:
Colleen Murphy
2014-07-08 09:17:19 -07:00
parent e72605f500
commit 97f76c5c60

View File

@@ -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