Revision f4459c11
Added by David Davis about 8 years ago
lib/foreman/renderer.rb | ||
---|---|---|
|
||
def unattended_render_to_temp_file(content, prefix = id.to_s, options = {})
|
||
file = ""
|
||
Tempfile.open(prefix, Rails.root.join('tmp') ) do |f|
|
||
Tempfile.open(prefix, Rails.root.join('tmp')) do |f|
|
||
f.print(unattended_render(content))
|
||
f.flush
|
||
f.chmod options[:mode] if options[:mode]
|
Also available in: Unified diff
Refs #3809 - Turning on some rubocop cops