Method: Chef::Application::Apply#temp_recipe_file
- Defined in:
- lib/chef/application/apply.rb
#temp_recipe_file ⇒ Object
write recipe to temp file, so in case of error, user gets error w/ context
216 217 218 219 220 221 |
# File 'lib/chef/application/apply.rb', line 216 def temp_recipe_file @recipe_fh = Tempfile.open("recipe-temporary-file") @recipe_fh.write(@recipe_text) @recipe_fh.rewind @recipe_filename = @recipe_fh.path end |