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

#data, exception_handlers, handler_for, report_handlers, resolve_handler_instance, run_exception_handlers, run_report_handlers, #run_report_safely, #run_report_unsafe, run_start_handlers, start_handlers

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