2 require 'puppetlabs_spec_helper/rake_tasks'
3 require 'puppet-lint/tasks/puppet-lint'
4 PuppetLint.configuration.send('disable_80chars')
5 PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
7 desc "Validate manifests, templates, and ruby files in lib."
9 Dir['manifests/**/*.pp'].each do |manifest|
10 sh "puppet parser validate --noop #{manifest}"
12 Dir['lib/**/*.rb'].each do |lib_file|
13 sh "ruby -c #{lib_file}"
15 Dir['templates/**/*.erb'].each do |template|
16 sh "erb -P -x -T '-' #{template} | ruby -c"