Mitchell Hashimoto 5a1846f77e vagrant reload
2010-08-24 23:30:32 -07:00

19 lines
380 B
Ruby

module Vagrant
module Command
class ReloadCommand < Base
desc "Reload the environment, halting it then restarting it."
register "reload"
def execute
target_vms.each do |vm|
if vm.created?
vm.reload
else
vm.env.ui.info "VM not created. Moving on..."
end
end
end
end
end
end