fuel-library/deployment/puppet/ssh/Rakefile
Stanislaw Bogatkin fc6f30481e Sync puppet ssh module to v2.3.6 from upstream
v2.3.6: 23f46577e5bcf07b3859a5690102187f8930c8b5

Change-Id: I8cfe97c3d5e877ad430575d9a7d80651eb4dc319
Implements: blueprint merge-openstack-puppet-modules
2014-06-18 14:53:26 +04:00

19 lines
640 B
Ruby

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 "Run puppet in noop mode and check for syntax errors."
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