Class: Gitx::Cli::ShareCommand
- Inherits:
-
BaseCommand
- Object
- Thor
- BaseCommand
- Gitx::Cli::ShareCommand
- Defined in:
- lib/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 Gitx::Cli::BaseCommand
Instance Method Details
#share ⇒ Object
9 10 11 12 |
# File 'lib/gitx/cli/share_command.rb', line 9 def share run_cmd "git push origin #{current_branch.name}" run_cmd "git branch --set-upstream-to origin/#{current_branch.name}" end |