Module: Scripted::Running::Execute

Defined in:
lib/scripted/running/execute.rb

Class Method Summary collapse

Class Method Details

.call(command, delegate, logger) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/scripted/running/execute.rb', line 5

def self.call(command, delegate, logger)
  command.execute!(logger.to_io(delegate))
  delegate.success!
rescue Exception => exception
  logger.exception(delegate, exception)
  delegate.failed!(exception)
  return false
end