19 lines
395 B
Ruby
19 lines
395 B
Ruby
module Vagrant
|
|
module Command
|
|
class ReloadCommand < NamedBase
|
|
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 "vagrant.commands.common.vm_not_created"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|