Class: GitCompound::Task::TaskEach
- Defined in:
- lib/git_compound/task/task_each.rb
Overview
Task for each component defined in manifest
Instance Attribute Summary
Attributes inherited from Task
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(name, manifest, &block) ⇒ TaskEach
constructor
A new instance of TaskEach.
Methods included from Logger::Debugger
Constructor Details
#initialize(name, manifest, &block) ⇒ TaskEach
Returns a new instance of TaskEach.
6 7 8 9 |
# File 'lib/git_compound/task/task_each.rb', line 6 def initialize(name, manifest, &block) super @components = manifest.components end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 |
# File 'lib/git_compound/task/task_each.rb', line 11 def execute @components.each_value do |component| execute_on(component.path, component) end end |