Sha256: 669096ed2251bdb6f8c7a3a5bb0ccff262b694a6e9b7233f86c1846a96a7443b

Contents?: true

Size: 638 Bytes

Versions: 8

Compression:

Stored size: 638 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

8 entries across 8 versions & 1 rubygems

Version Path
beaker-4.42.0 acceptance/fixtures/module/Rakefile
beaker-4.41.2 acceptance/fixtures/module/Rakefile
beaker-4.41.1 acceptance/fixtures/module/Rakefile
beaker-4.41.0 acceptance/fixtures/module/Rakefile
beaker-4.40.2 acceptance/fixtures/module/Rakefile
beaker-4.40.1 acceptance/fixtures/module/Rakefile
beaker-4.40.0 acceptance/fixtures/module/Rakefile
beaker-4.39.0 acceptance/fixtures/module/Rakefile