summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails/rails_resource.rb
diff options
context:
space:
mode:
authorMax Martin <max@puppetlabs.com>2011-04-27 12:45:47 -0700
committerMax Martin <max@puppetlabs.com>2011-04-27 12:45:47 -0700
commit9d2500e7169bc8eba58d9157db49586be24d6ded (patch)
tree7324e202c6595750be76ce3f33ed04c945f3df7e /lib/puppet/rails/rails_resource.rb
parent89e9a212e7c2426fa89f65e57a3d225a73ae0613 (diff)
downloadpuppet-9d2500e7169bc8eba58d9157db49586be24d6ded.tar.gz
puppet-9d2500e7169bc8eba58d9157db49586be24d6ded.tar.xz
puppet-9d2500e7169bc8eba58d9157db49586be24d6ded.zip
(#7101) Fix template error messages in Ruby 1.8.5
lib/puppet/parser/templatewrapper.rb#script_line was calling .first on a String object, which in Ruby > 1.8.5 will return the entire string, but in 1.8.5 will cause an exception. This change (proposed by Markus Roberts) removes the call to .first and adds a condition for when the template error involves the file not being found. Reviewed-by: Jesse Wolfe
Diffstat (limited to 'lib/puppet/rails/rails_resource.rb')
0 files changed, 0 insertions, 0 deletions