2010-03-17 21:38:38 -07:00

17 lines
356 B
Ruby

module Vagrant
module Actions
module VM
class Suspend < Base
def execute!
if !@runner.vm.running?
raise ActionException.new(:vm_not_running_for_suspend)
end
logger.info "Saving VM state and suspending execution..."
@runner.vm.save_state(true)
end
end
end
end
end