Class: Ora::Cli::NewFeatureBranch
- Defined in:
- lib/ora/cli/tasks/new_feature_branch.rb
Constant Summary
Constants inherited from Task
Instance Attribute Summary collapse
-
#branch_name ⇒ Object
readonly
Returns the value of attribute branch_name.
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
#branch_name ⇒ Object (readonly)
Returns the value of attribute branch_name.
5 6 7 |
# File 'lib/ora/cli/tasks/new_feature_branch.rb', line 5 def branch_name @branch_name end |
Instance Method Details
#commands ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ora/cli/tasks/new_feature_branch.rb', line 7 def commands ' :set_branch_name :new_branch! :clean_on_main_branch! git stash save -u "OraCli" git checkout #{develop_branch} git pull origin #{develop_branch} git checkout -b #{branch_name} ' end |