`vagrant reload`
This commit is contained in:
parent
3447dc4828
commit
5a1846f77e
|
@ -0,0 +1,18 @@
|
||||||
|
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
|
Loading…
Reference in New Issue