Class: OptimisWorkflow::Commands::FinishFeature
- Inherits:
-
FinishCommand
- Object
- Base
- FinishCommand
- OptimisWorkflow::Commands::FinishFeature
- 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
Attributes inherited from Base
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
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_suffix ⇒ Object
15 16 17 |
# File 'lib/optimis-workflow/commands/finish_feature.rb', line 15 def commit_msg_suffix "[finishes ##{story_id}]" end |
#help_msg ⇒ Object
19 20 21 |
# File 'lib/optimis-workflow/commands/finish_feature.rb', line 19 def help_msg "Syntax: finish-feature commit-msg" end |
#parent_branch ⇒ Object
11 12 13 |
# File 'lib/optimis-workflow/commands/finish_feature.rb', line 11 def parent_branch 'master' end |