Class: Grancher::Task
- Inherits:
-
Object
- Object
- Grancher::Task
- Defined in:
- lib/grancher/task.rb
Instance Method Summary collapse
-
#initialize(name = 'publish', &blk) ⇒ Task
constructor
Defines a task named
namewhere the block given behaves like a Grancher-object.
Constructor Details
#initialize(name = 'publish', &blk) ⇒ Task
Defines a task named name where the block given behaves like a Grancher-object.
If push_to is set, it will automatically push the branch when done.
9 10 11 12 |
# File 'lib/grancher/task.rb', line 9 def initialize(name = 'publish', &blk) @grancher = Grancher.new(&blk) define_task(name) end |