Sha256: 0dfc3f2945c27536b725eb68875269ed2fcd1734cd7722e015c36df0f2b14ff6

Contents?: true

Size: 639 Bytes

Versions: 17

Compression:

Stored size: 639 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"
task :validate do
  Dir['manifests/**/*.pp'].each do |manifest|
    sh "puppet parser validate --noop #{manifest}"
  end
  Dir['spec/**/*.rb', 'lib/**/*.rb'].each do |ruby_file|
    sh "ruby -c #{ruby_file}" unless ruby_file.include?('spec/fixtures')
  end
  Dir['templates/**/*.erb'].each do |template|
    sh "erb -P -x -T '-' #{template} | ruby -c"
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
beaker-6.5.0 acceptance/fixtures/module/Rakefile
beaker-6.4.1 acceptance/fixtures/module/Rakefile
beaker-6.4.0 acceptance/fixtures/module/Rakefile
beaker-6.3.0 acceptance/fixtures/module/Rakefile
beaker-6.2.0 acceptance/fixtures/module/Rakefile
beaker-6.1.0 acceptance/fixtures/module/Rakefile
beaker-5.8.1 acceptance/fixtures/module/Rakefile
beaker-5.8.0 acceptance/fixtures/module/Rakefile
beaker-5.7.0 acceptance/fixtures/module/Rakefile
beaker-5.6.0 acceptance/fixtures/module/Rakefile
beaker-5.5.0 acceptance/fixtures/module/Rakefile
beaker-5.4.0 acceptance/fixtures/module/Rakefile
beaker-5.3.1 acceptance/fixtures/module/Rakefile
beaker-5.3.0 acceptance/fixtures/module/Rakefile
beaker-5.2.0 acceptance/fixtures/module/Rakefile
beaker-5.1.0 acceptance/fixtures/module/Rakefile
beaker-5.0.0 acceptance/fixtures/module/Rakefile