Class: Trebor::Task
- Inherits:
-
Object
- Object
- Trebor::Task
- Defined in:
- lib/trebor/task.rb
Instance Attribute Summary
Attributes included from Domain
Instance Method Summary collapse
- #action ⇒ Object
- #command ⇒ Object
-
#initialize(parent, action) ⇒ Task
constructor
A new instance of Task.
Methods included from Domain
#current_directory, #fetch, #toplevel
Methods included from Command
#as, #call, #on, #run, #test?, #with, #within
Constructor Details
#initialize(parent, action) ⇒ Task
Returns a new instance of Task.
5 6 7 8 |
# File 'lib/trebor/task.rb', line 5 def initialize(parent, action) @action = action @parent = parent end |
Instance Method Details
#action ⇒ Object
14 15 16 |
# File 'lib/trebor/task.rb', line 14 def action instance_eval &@action end |
#command ⇒ Object
10 11 12 |
# File 'lib/trebor/task.rb', line 10 def command Command end |