require 'json' require 'vagrant-skytap/util/timer' require 'vagrant-skytap/api/environment' require 'net/https' require 'uri' require 'base64' require 'json' require 'timeout' module VagrantPlugins module Skytap module Action # Suspends the Skytap VM and waits until suspended. class SuspendVm attr_reader :env def initialize(app, env) @app = app @env = env @logger = Log4r::Logger.new("vagrant_skytap::action::suspend_vm") end def call(env) env[:environment].current_vm.suspend! @app.call(env) end end end end end