vagrant provision
This commit is contained in:
parent
4d56e68268
commit
3447dc4828
18
lib/vagrant/command/provision.rb
Normal file
18
lib/vagrant/command/provision.rb
Normal file
@ -0,0 +1,18 @@
|
||||
module Vagrant
|
||||
module Command
|
||||
class ProvisionCommand < Base
|
||||
desc "Rerun the provisioning scripts on a running VM"
|
||||
register "provision"
|
||||
|
||||
def execute
|
||||
target_vms.each do |vm|
|
||||
if vm.created? && vm.vm.running?
|
||||
vm.provision
|
||||
else
|
||||
vm.env.ui.info "VM not created. Moving on..."
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user