Class: Chef::Handler::ErrorReport
- Inherits:
-
Chef::Handler
- Object
- Chef::Handler
- Chef::Handler::ErrorReport
- Defined in:
- lib/chef/handler/error_report.rb
Instance Attribute Summary
Attributes inherited from Chef::Handler
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, run_start_handlers, start_handlers
Instance Method Details
#report ⇒ Object
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 |