Class: Duty::Tasks::Base::Ruby
Instance Method Summary collapse
Methods inherited from Command
#description, #error, #initialize, #logger, run, #success?
Constructor Details
This class inherits a constructor from Duty::Tasks::Base::Command
Instance Method Details
#execute ⇒ Object
132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/duty/tasks.rb', line 132 def execute begin @callable.call @success = true rescue Exception => e @error = "ERROR: #{e.inspect}" ensure @logger << summary @logger << error end end |