Class: DRbQS::CommandTask

Inherits:
Task
  • Object
show all
Defined in:
lib/drbqs/task.rb

Instance Attribute Summary

Attributes inherited from Task

#hook

Instance Method Summary collapse

Methods inherited from Task

#drb_args, execute_task, #same_target?

Constructor Details

#initialize(cmd, opts = {}, &hook) ⇒ CommandTask

&hook takes a server instance and exit number of command.



77
78
79
# File 'lib/drbqs/task.rb', line 77

def initialize(cmd, opts = {}, &hook)
  super(CommandExecute.new(cmd, {}), :exec, &hook)
end