lib/sous_vide/event_methods.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(new_resource, _action, exception)
      return false if @processing_now.nil? || nested?(new_resource) 
      debug("Received :resource_failed on #{@processing_now}")
      @processing_now.status = "failed"
      @processing_now.error_source = new_resource.to_text
      @processing_now.error_output = exception.message
      true
    end
def resource_failed ( new_resource , _action , exception ) return false if @processing_now . nil? || nested? ( new_resource ) debug ( "Received :resource_failed on #{@processing_now}" ) @processing_now . status = "failed" @processing_now . error_source = new_resource . to_text @processing_now . error_output = exception . message true end
Called when a resource fails and will not be retried.
Called when a resource fails and will not be retried .
# ignore nested resources
new_resource
<not_specific>
_action
<not_specific>
exception
<not_specific>