Class: GitCompound::Task::Task
- Inherits:
-
Object
- Object
- GitCompound::Task::Task
- Extended by:
- Logger::Debugger
- Defined in:
- lib/git_compound/task/task.rb,
lib/git_compound/logger/debug/task.rb
Overview
Debug messages for Task
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(name, manifest, &block) ⇒ Task
constructor
A new instance of Task.
Methods included from Logger::Debugger
Constructor Details
#initialize(name, manifest, &block) ⇒ Task
Returns a new instance of Task.
10 11 12 13 14 15 16 17 |
# File 'lib/git_compound/task/task.rb', line 10 def initialize(name, manifest, &block) raise GitCompoundError, "Block not given for task `#{name}`" unless block @name = name @manifest = manifest @block = block end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/git_compound/task/task.rb', line 8 def name @name end |
Instance Method Details
#execute ⇒ Object
19 20 21 |
# File 'lib/git_compound/task/task.rb', line 19 def execute raise NotImplementedError end |