Class: Chef::Handler::ErrorReport

Inherits:
Chef::Handler show all
Defined in:
lib/chef/handler/error_report.rb

Instance Attribute Summary

Attributes inherited from Chef::Handler

#run_status

Instance Method Summary collapse

Methods inherited from Chef::Handler

#action_collection, #all_resources, #data, exception_handlers, #failed_resources, handler_for, report_handlers, resolve_handler_instance, run_exception_handlers, run_report_handlers, #run_report_safely, #run_report_unsafe, run_start_handlers, #skipped_resources, start_handlers, #unprocessed_resources, #up_to_date_resources, #updated_resources

Instance Method Details

#reportObject



26
27
28
29
# File 'lib/chef/handler/error_report.rb', line 26

def report
  Chef::FileCache.store("failed-run-data.json", Chef::JSONCompat.to_json_pretty(data), 0640)
  Chef::Log.fatal("Saving node information to #{Chef::FileCache.load("failed-run-data.json", false)}")
end