Sha256: f1c04057b2e1495204a9d66f79e51cf2195c8a674b13c6299d0ea9fe6ba6806c

Contents?: true

Size: 587 Bytes

Versions: 7

Compression:

Stored size: 587 Bytes

Contents

require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]

desc "Validate manifests, templates, and ruby files in lib."
task :validate do
  Dir['manifests/**/*.pp'].each do |manifest|
    sh "puppet parser validate --noop #{manifest}"
  end
  Dir['lib/**/*.rb'].each do |lib_file|
    sh "ruby -c #{lib_file}"
  end
  Dir['templates/**/*.erb'].each do |template|
    sh "erb -P -x -T '-' #{template} | ruby -c"
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
puppet-retrospec-0.12.1 spec/fixtures/modules/stdlib/Rakefile
puppet-retrospec-0.12.0 spec/fixtures/modules/stdlib/Rakefile
puppet-retrospec-0.11.0 spec/fixtures/modules/stdlib/Rakefile
puppet-retrospec-0.10.0 spec/fixtures/modules/stdlib/Rakefile
puppet-retrospec-0.9.1 spec/fixtures/modules/stdlib/Rakefile
puppet-retrospec-0.9.0 spec/fixtures/modules/stdlib/Rakefile
bebox-0.0.1 lib/templates/puppet/step-0/modules/stdlib/Rakefile