Sha256: cef315a89425a7e1e2c07130e7bedf30be58655e10fefa679dfba7198f479a59

Contents?: true

Size: 633 Bytes

Versions: 208

Compression:

Stored size: 633 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 =~ /spec\/fixtures/
  end
  Dir['templates/**/*.erb'].each do |template|
    sh "erb -P -x -T '-' #{template} | ruby -c"
  end
end

Version data entries

208 entries across 208 versions & 3 rubygems

Version Path
beaker-4.38.1 acceptance/fixtures/module/Rakefile
beaker-4.38.0 acceptance/fixtures/module/Rakefile
beaker-4.37.2 acceptance/fixtures/module/Rakefile
beaker-4.37.1 acceptance/fixtures/module/Rakefile
beaker-4.37.0 acceptance/fixtures/module/Rakefile
beaker-4.36.1 acceptance/fixtures/module/Rakefile
beaker-4.36.0 acceptance/fixtures/module/Rakefile
beaker-4.35.0 acceptance/fixtures/module/Rakefile
beaker-4.34.0 acceptance/fixtures/module/Rakefile
beaker-4.33.0 acceptance/fixtures/module/Rakefile
beaker-4.32.0 acceptance/fixtures/module/Rakefile
beaker-4.31.0 acceptance/fixtures/module/Rakefile
beaker-4.30.0 acceptance/fixtures/module/Rakefile
beaker-4.29.1 acceptance/fixtures/module/Rakefile
beaker-4.29.0 acceptance/fixtures/module/Rakefile
beaker-4.28.1 acceptance/fixtures/module/Rakefile
beaker-4.28.0 acceptance/fixtures/module/Rakefile
beaker-4.27.1 acceptance/fixtures/module/Rakefile
beaker-4.27.0 acceptance/fixtures/module/Rakefile
beaker-4.26.0 acceptance/fixtures/module/Rakefile