Class: MediaWikiVagrant::GitUpdates
- Defined in:
- lib/mediawiki-vagrant/git-update.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.synopsis ⇒ Object
3 4 5 |
# File 'lib/mediawiki-vagrant/git-update.rb', line 3 def self.synopsis 'fetches new code from Gerrit' end |
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/mediawiki-vagrant/git-update.rb', line 7 def execute if %w(-h --help).include? @argv.first @env.ui.info 'Usage: vagrant git-update [-h|--help|-f|--force]' return 0 end with_target_vms(nil, single_target: true) do |vm| opts = { extra_args: @argv.unshift('run-git-update') } vm.action :ssh, ssh_opts: opts end end |