Class: Thegarage::Gitx::Cli::ShareCommand
- Inherits:
-
BaseCommand
- Object
- Thor
- BaseCommand
- Thegarage::Gitx::Cli::ShareCommand
- Defined in:
- lib/thegarage/gitx/cli/share_command.rb
Instance Method Summary collapse
Methods inherited from BaseCommand
Methods included from Thor::Actions
Constructor Details
This class inherits a constructor from Thegarage::Gitx::Cli::BaseCommand
Instance Method Details
#share ⇒ Object
10 11 12 13 |
# File 'lib/thegarage/gitx/cli/share_command.rb', line 10 def share run_cmd "git push origin #{current_branch.name}" run_cmd "git branch --set-upstream-to origin/#{current_branch.name}" end |