2010-08-27 19:46:50 -07:00

21 lines
368 B
Ruby

module Vagrant
class Action
module VM
class Suspend
def initialize(app, env)
@app = app
end
def call(env)
if env["vm"].vm.running?
env.ui.info "vagrant.actions.vm.suspend.suspending"
env["vm"].vm.save_state
end
@app.call(env)
end
end
end
end
end