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? if vm.vm.running? vm.provision else vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_running") end else vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_created") end end end end end end