class DRbQS::CommandTask

Class to define tasks such that we execute a command.

Public Class Methods

new(*args, &hook) click to toggle source

@override initialize(*cmds, opts = {}, &hook)

@param [Array] cmds An array of commands which are string or array, that is, arguments of the method 'system'.
@param [Hash] opts Hash of options
@param [Proc] hook Block same as that of DRbQS::Task object, which takes a server instance and an array of exit statuses.
@option opts [String,Array] :transfer Paths to be transfered after finish of commands
@option opts [boolean] :compress Compress files before transfering or not
Calls superclass method DRbQS::Task::new
# 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