Class: Finish

Inherits:
Base
  • Object
show all
Defined in:
lib/git-pivotal-tracker-integration/finish.rb

Instance Method Summary collapse

Methods inherited from Base

#current_branch, #initialize

Constructor Details

This class inherits a constructor from Base

Instance Method Details

#runObject



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/git-pivotal-tracker-integration/finish.rb', line 20

def run
  development_branch = current_branch
  merge_target_branch = PivotalConfiguration.merge_target
  merge_remote = PivotalConfiguration.merge_remote
  story_id = PivotalConfiguration.story_id

  check_trivial_merge development_branch, merge_target_branch, merge_remote
  merge_branch development_branch, merge_target_branch, story_id
  delete_branch development_branch
  push merge_remote
end