Class: Ora::Cli::SwitchBranch
- Defined in:
- lib/ora/cli/tasks/switch_branch.rb
Constant Summary
Constants inherited from Task
Instance Attribute Summary collapse
-
#target_branch ⇒ Object
readonly
Returns the value of attribute target_branch.
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
#target_branch ⇒ Object (readonly)
Returns the value of attribute target_branch.
6 7 8 |
# File 'lib/ora/cli/tasks/switch_branch.rb', line 6 def target_branch @target_branch end |
Instance Method Details
#commands ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/ora/cli/tasks/switch_branch.rb', line 8 def commands ' :only_feature_branch_can_be_dirty! :switch_to git stash save -u "OraCli" git checkout #{target_branch} :apply_stash ' end |