Reverted to old syntax for backwards compatibility

This commit is contained in:
Gene Liverman 2017-05-07 14:39:19 -07:00
parent 2cdee4c475
commit d008f064cc

View file

@ -21,7 +21,8 @@ task :validate do
sh "puppet parser validate --noop #{manifest}"
end
Dir['bin/**/*.rb', 'spec/**/*.rb'].each do |ruby_file|
sh "ruby -c #{ruby_file}" unless ruby_file.match? %r{spec\/fixtures}
# sh "ruby -c #{ruby_file}" unless ruby_file.match? %r{spec\/fixtures}
sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
end
Dir['puppet/site/*/templates/**/*.erb'].each do |template|
sh "erb -P -x -T '-' #{template} | ruby -c"