Class: Grancher::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/grancher/task.rb

Instance Method Summary collapse

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