`vagrant resume`
This commit is contained in:
parent
5a1846f77e
commit
7c0fe570a5
|
@ -0,0 +1,18 @@
|
||||||
|
module Vagrant
|
||||||
|
module Command
|
||||||
|
class ResumeCommand < Base
|
||||||
|
desc "Resume a suspended Vagrant environment."
|
||||||
|
register "resume"
|
||||||
|
|
||||||
|
def execute
|
||||||
|
target_vms.each do |vm|
|
||||||
|
if vm.created?
|
||||||
|
vm.resume
|
||||||
|
else
|
||||||
|
vm.env.ui.info "VM not created. Moving on..."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue