Class: DRbQS::Task::TaskSet::ContainerWithoutHook

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

Overview

Class to group a number of objects to process tasks.

Instance Method Summary collapse

Methods inherited from Container

#==

Constructor Details

#initialize(task_ary) ⇒ ContainerWithoutHook

Returns a new instance of ContainerWithoutHook.



139
140
141
142
143
# File 'lib/drbqs/task/task.rb', line 139

def initialize(task_ary)
  @data = task_ary.map.with_index do |task, i|
    task.drb_args(i)[2..-1]
  end
end

Instance Method Details

#execObject



145
146
147
148
149
# File 'lib/drbqs/task/task.rb', line 145

def exec
  @data.map do |ary|
    DRbQS::Task.execute_task(*ary)
  end
end