Skip to content

Commit

Permalink
(#188) use named args in ERB.new
Browse files Browse the repository at this point in the history
  • Loading branch information
dom0317 authored Oct 27, 2023
1 parent 70c6dc0 commit 9464865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mcollective/pluginpackager/forge_packager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def render_templates
end

def render_template(infile, outfile)
erb = ERB.new(File.read(infile), 0, "-")
erb = ERB.new(File.read(infile), safe_level:0, trim_mode:"-")
File.open(outfile, "w") do |f|
f.puts erb.result(binding)
end
Expand Down

0 comments on commit 9464865

Please sign in to comment.