Class Chef::RunStatus
In: lib/chef/run_status.rb
Parent: Object

Chef::RunStatus

Tracks various aspects of a Chef run, including the Node and RunContext, start and end time, and any Exception that stops the run. RunStatus objects are passed to any notification or exception handlers at the completion of a Chef run.

Methods

Attributes

end_time  [R] 
events  [R] 
exception  [R] 
exception  [W] 
run_context  [W] 
run_context  [R] 
start_time  [R] 

Public Class methods

Public Instance methods

The list of all resources in the current run context‘s resource_collection

The backtrace from exception, if any

The elapsed time between start_time and end_time. Returns nil if either value is not set.

Did the Chef run fail?

Returns a string of the format "ExceptionClass: message" or nil if no exception is set.

sets start_time to the current time.

sets end_time to the current time

Did the chef run succeed? returns true if no exception has been set.

A Hash representation of the RunStatus, with the following (Symbol) keys:

The list of all resources in the current run context‘s resource_collection that are marked as updated

[Validate]