Class: DRbQS::CommandTask

Inherits:
Task
  • Object
show all
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

Task::DEFAULT_GROUP

Instance Attribute Summary

Attributes inherited from Task

#args, #group, #hook, #method_name, #note, #obj

Instance Method Summary collapse

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.extract_options!
  super(DRbQS::CommandTask::CommandExecute.new(args, opts), :exec, &hook)
end