Class: DRbQS::CommandTask
- Defined in:
- lib/drbqs/ext/task/command_task.rb
Overview
Class to define tasks such that we execute a command.
Defined Under Namespace
Classes: CommandExecute
Constant Summary
Constants inherited from Task
Instance Attribute Summary
Attributes inherited from Task
#args, #group, #hook, #method_name, #note, #obj
Instance Method Summary collapse
-
#initialize(*args, &hook) ⇒ CommandTask
constructor
A new instance of CommandTask.
Methods inherited from Task
#==, call_task_method, #drb_args, #exec_hook, execute_task, #simple_drb_args
Constructor Details
#initialize(*args, &hook) ⇒ CommandTask
Returns a new instance of CommandTask.
41 42 43 44 |
# File 'lib/drbqs/ext/task/command_task.rb', line 41 def initialize(*args, &hook) opts = args. super(DRbQS::CommandTask::CommandExecute.new(args, opts), :exec, &hook) end |