2010-07-06 21:42:02 -07:00

21 lines
359 B
Ruby

module Vagrant
class Action
module VM
class Resume
def initialize(app, env)
@app = app
end
def call(env)
if env["vm"].vm.saved?
env.logger.info "Resuming suspended VM..."
env["actions"].run(:start)
end
@app.call(env)
end
end
end
end
end