lib/navo/chef_formatter.rb
# Called when a resource fails and will not be retried.
Called when a resource fails and will not be retried.
Called when a resource fails and will not be retried .
def resource_failed(resource, action, exception)
        _, start_time = @resource_stack.pop
        elapsed = Time.now - start_time
        @resource_action_times[[resource.to_s, action.to_s]] << elapsed
        puts_line "#{resource} action #{action} (#{elapsed}s) FAILED: #{exception}", :red
        unindent
      end
def resource_failed ( resource , action , exception ) _ , start_time = @resource_stack . pop elapsed = Time . now - start_time @resource_action_times [ [ resource . to_s , action . to_s ] ] << elapsed puts_line "#{resource} action #{action} (#{elapsed}s) FAILED: #{exception}" , :red unindent end
Called when a resource fails and will not be retried.
Called when a resource fails and will not be retried .
resource
<not_specific>
action
<not_specific>
exception
<not_specific>