Class: Flux::CLI::Feature

Inherits:
Thor
  • Object
show all
Defined in:
lib/flux/cli/feature.rb

Constant Summary collapse

B =
Flux::Git::Branch

Instance Method Summary collapse

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


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 => options[:estimate]
  invoke 'pt:start', [story_id]
  invoke 'branch:create',
         [branch_id],
         :parent_branch => options[:parent_branch]

  link story_id, branch_id
end