Class: Ora::Cli::PushToStaging

Inherits:
Task
  • Object
show all
Defined in:
lib/ora/cli/tasks/push_to_staging.rb

Constant Summary

Constants inherited from Task

Task::MAIN_BRANCHES

Instance Attribute Summary

Attributes inherited from Task

#branch, #print, #stdin

Instance Method Summary collapse

Methods inherited from Task

#initialize, #run, #success?

Constructor Details

This class inherits a constructor from Ora::Cli::Task

Instance Method Details

#commandsObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ora/cli/tasks/push_to_staging.rb', line 6

def commands
  '
  :feature_branch!
  :clean_branch!
  git checkout develop
  git pull origin develop
  git checkout #{branch}
  git merge develop
  git checkout staging
  git pull origin staging
  git merge #{branch}
  git push origin staging
  git checkout #{branch}
  :slack_message_to_paste
  '
end