Class: Flux::CLI::Feature
- Inherits:
-
Thor
- Object
- Thor
- Flux::CLI::Feature
- Defined in:
- lib/flux/cli/feature.rb
Constant Summary collapse
Instance Method Summary collapse
- #finish(branch_id = B.current.name) ⇒ Object
- #link(story_id, branch_id) ⇒ Object
- #start(story_id, branch_id = branch_id_from_story(story_id)) ⇒ Object
Instance Method Details
#finish(branch_id = B.current.name) ⇒ Object
31 32 33 34 |
# File 'lib/flux/cli/feature.rb', line 31 def finish(branch_id = B.current.name) invoke "pt:finish", [B.local(branch_id).config('story_id')] invoke "review:request" end |
#link(story_id, branch_id) ⇒ Object
26 27 28 |
# File 'lib/flux/cli/feature.rb', line 26 def link(story_id, branch_id) B.local(branch_id).config('story_id', story_id) end |
#start(story_id, branch_id = branch_id_from_story(story_id)) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/flux/cli/feature.rb', line 15 def start(story_id, branch_id = branch_id_from_story(story_id)) invoke 'pt:grab', [story_id], :estimate => [:estimate] invoke 'pt:start', [story_id] invoke 'branch:create', [branch_id], :parent_branch => [:parent_branch] link story_id, branch_id end |