vaguerent/lib/vagrant/command/provision.rb

18 lines
412 B
Ruby

module Vagrant
module Command
class ProvisionCommand < NamedBase
register "provision", "Rerun the provisioning scripts on a running VM"
def execute
target_vms.each do |vm|
if vm.created? && vm.vm.running?
vm.provision
else
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_created")
end
end
end
end
end
end