Avoid linting and validating Puppet manifests that are not owned by 'jenkins-infra'

This commit is contained in:
R. Tyler Croy 2014-04-30 15:42:11 -07:00
parent ecdb90a564
commit f5f187cd57
1 changed files with 2 additions and 2 deletions

View File

@ -3,11 +3,11 @@ require 'puppetlabs_spec_helper/rake_tasks'
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.ignore_paths = ["modules/**/*.pp"]
PuppetLint.configuration.ignore_paths = ['modules/**/*.pp', 'spec/fixtures/**/*.pp']
desc "Validate the Puppet syntax of all manifests"
task :validate do
Dir['./**/*.pp'].each do |filename|
Dir['./{dist,manifests}/**/*.pp'].each do |filename|
sh "puppet parser validate '#{filename}'"
end
end