Class: Gitx::Cli::UpdateCommand
- Inherits:
-
BaseCommand
- Object
- Thor
- BaseCommand
- Gitx::Cli::UpdateCommand
- Defined in:
- lib/gitx/cli/update_command.rb
Instance Method Summary collapse
Methods included from Thor::Actions
Instance Method Details
#update ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/gitx/cli/update_command.rb', line 9 def update say 'Updating ' say "#{current_branch.name} ", :green say 'with latest changes from ' say config.base_branch, :green update_base_branch update_branch(current_branch.name) if remote_branch_exists?(current_branch.name) update_branch(config.base_branch, repository: '.') run_git_cmd 'share' end |