Class: Ora::Cli::PushToMaster
- Defined in:
- lib/ora/cli/tasks/push_to_master.rb
Constant Summary
Constants inherited from Task
Instance Attribute Summary collapse
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Attributes inherited from Task
#branch, #develop_branch, #print, #stdin
Instance Method Summary collapse
Methods inherited from Task
Constructor Details
This class inherits a constructor from Ora::Cli::Task
Instance Attribute Details
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/ora/cli/tasks/push_to_master.rb', line 5 def version @version end |
Instance Method Details
#commands ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/ora/cli/tasks/push_to_master.rb', line 7 def commands ' :clean_on_main_branch! git stash save -u "OraCli" git checkout develop git pull origin develop git merge #{branch} git push origin develop git checkout master git pull origin master git merge develop git push origin master git fetch --tags :set_version git checkout #{branch} :apply_stash :slack_message_to_paste ' end |