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, report_handlers, run_exception_handlers, run_report_handlers, #run_report_safely, #run_report_unsafe

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))
  Chef::Log.fatal("Saving node information to #{Chef::FileCache.load("failed-run-data.json", false)}")
end