Class: OptimisWorkflow::Commands::FinishFeature

Inherits:
FinishCommand show all
Defined in:
lib/optimis-workflow/commands/finish_feature.rb

Overview

  • Determine current local feature branch

  • Extract story id from branch name (should be feature-STORYID)

  • git checkout master

  • git merge –squash feature-branch

  • git commit ‘COMMITMSG [finishes #STORYID]

  • git push origin master

Instance Attribute Summary

Attributes inherited from FinishCommand

#feature_branch

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from FinishCommand

#commit_msg, #initialize, #local_stuff, modified_files, #remote_stuff, #run_tests, #story_id, #update_parent_branch

Methods inherited from Base

#execute!, #initialize

Methods included from OptimisWorkflow::Common

#current_dir, #mark_as_started_on_pivotal, #payload, #settings, #settings_file, #start_feature

Constructor Details

This class inherits a constructor from OptimisWorkflow::Commands::FinishCommand

Instance Method Details

#commit_msg_suffixObject



15
16
17
# File 'lib/optimis-workflow/commands/finish_feature.rb', line 15

def commit_msg_suffix
  "[finishes ##{story_id}]"
end

#help_msgObject



19
20
21
# File 'lib/optimis-workflow/commands/finish_feature.rb', line 19

def help_msg
  "Syntax: finish-feature commit-msg"
end

#parent_branchObject



11
12
13
# File 'lib/optimis-workflow/commands/finish_feature.rb', line 11

def parent_branch
  'master'
end