Puppet module to install Megacli
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
633 B

  1. require 'rubygems'
  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"]
  6. desc "Validate manifests, templates, and ruby files"
  7. task :validate do
  8. Dir['manifests/**/*.pp'].each do |manifest|
  9. sh "puppet parser validate --noop #{manifest}"
  10. end
  11. Dir['spec/**/*.rb','lib/**/*.rb'].each do |ruby_file|
  12. sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
  13. end
  14. Dir['templates/**/*.erb'].each do |template|
  15. sh "erb -P -x -T '-' #{template} | ruby -c"
  16. end
  17. end