Class: GitCompound::Task::TaskSingle
- Defined in:
- lib/git_compound/task/task_single.rb
Overview
Single task for single component
Instance Attribute Summary
Attributes inherited from Task
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(name, manifest, &block) ⇒ TaskSingle
constructor
A new instance of TaskSingle.
Methods included from Logger::Debugger
Constructor Details
#initialize(name, manifest, &block) ⇒ TaskSingle
Returns a new instance of TaskSingle.
6 7 8 9 |
# File 'lib/git_compound/task/task_single.rb', line 6 def initialize(name, manifest, &block) super @component = @manifest.parent end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/git_compound/task/task_single.rb', line 11 def execute if @component execute_on(@component.path, @component.manifest) else # Root manifest without parent execute_on(Dir.pwd, @manifest) end end |