Mercurial > repos > other > Puppet
annotate modules/stdlib/Rakefile @ 130:eb32a4978a7c puppet-3.6
Be less agressive with blocking on the grounds of SPF
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 06 Oct 2016 19:02:30 +0100 |
parents | addb0ea390a1 |
children | c42fb28cff86 |
rev | line source |
---|---|
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 require 'rubygems' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 require 'puppetlabs_spec_helper/rake_tasks' |
37 | 3 require 'puppet-lint/tasks/puppet-lint' |
4 PuppetLint.configuration.send('disable_80chars') | |
5 PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] | |
6 | |
7 desc "Validate manifests, templates, and ruby files in lib." | |
8 task :validate do | |
9 Dir['manifests/**/*.pp'].each do |manifest| | |
10 sh "puppet parser validate --noop #{manifest}" | |
11 end | |
12 Dir['lib/**/*.rb'].each do |lib_file| | |
13 sh "ruby -c #{lib_file}" | |
14 end | |
15 Dir['templates/**/*.erb'].each do |template| | |
16 sh "erb -P -x -T '-' #{template} | ruby -c" | |
17 end | |
18 end |