Class: GitCompound::Task::TaskAll

Inherits:
Task
  • Object
show all
Defined in:
lib/git_compound/task/task_all.rb

Overview

Task for all descendant components in manifest

Instance Attribute Summary

Attributes inherited from Task

#name

Instance Method Summary collapse

Methods included from Logger::Debugger

#debug_after, #debug_before

Constructor Details

#initialize(name, manifest, &block) ⇒ TaskAll

Returns a new instance of TaskAll.



6
7
8
9
# File 'lib/git_compound/task/task_all.rb', line 6

def initialize(name, manifest, &block)
  super
  @components = components_collect!
end

Instance Method Details

#executeObject



11
12
13
14
15
# File 'lib/git_compound/task/task_all.rb', line 11

def execute
  @components.each_value do |component|
    execute_on(component.path, component)
  end
end