`vagrant suspend`

This commit is contained in:
Mitchell Hashimoto 2010-08-25 00:00:54 -07:00
parent 23526c3746
commit c0bf4471fb
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
module Vagrant
module Command
class SuspendCommand < NamedBase
desc "Suspend a running Vagrant environment."
register "suspend"
def execute
target_vms.each do |vm|
if vm.created?
vm.suspend
else
vm.env.ui.info "VM not created. Moving on..."
end
end
end
end
end
end