Class: Libis::Workflow::TaskGroup

Inherits:
Task
  • Object
show all
Defined in:
lib/libis/workflow/task_group.rb

Overview

noinspection RubyTooManyMethodsInspection

Instance Attribute Summary collapse

Attributes inherited from Task

#name, #parent, #workitem

Instance Method Summary collapse

Methods inherited from Task

#logger, #message, #namepath, #names, #run, task_classes

Constructor Details

#initialize(parent, cfg = {}) ⇒ TaskGroup

Returns a new instance of TaskGroup.



11
12
13
14
# File 'lib/libis/workflow/task_group.rb', line 11

def initialize(parent, cfg = {})
  self.tasks = []
  super parent, cfg
end

Instance Attribute Details

#tasksObject

Returns the value of attribute tasks.



9
10
11
# File 'lib/libis/workflow/task_group.rb', line 9

def tasks
  @tasks
end

Instance Method Details

#<<(task) ⇒ Object



16
17
18
# File 'lib/libis/workflow/task_group.rb', line 16

def <<(task)
  self.tasks << task
end

#apply_options(opts) ⇒ Object



20
21
22
23
24
25
# File 'lib/libis/workflow/task_group.rb', line 20

def apply_options(opts)
  super opts
  self.tasks.each do |task|
    task.apply_options opts
  end
end