2014-02-27 01:41:02 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module HyperV
|
|
|
|
module Action
|
|
|
|
class SuspendVM
|
|
|
|
def initialize(app, env)
|
|
|
|
@app = app
|
|
|
|
end
|
|
|
|
|
|
|
|
def call(env)
|
|
|
|
env[:ui].info("Suspending the machine...")
|
2014-03-06 16:51:07 +00:00
|
|
|
env[:machine].provider.driver.suspend
|
2014-02-27 01:41:02 +00:00
|
|
|
@app.call(env)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|