Sha256: e578247f7ebfedfc5f88006c4c2ed07ebd88dd43c7865faa7acb74197b4d6c0e

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
vagrantup-0.5.0 lib/vagrant/action/vm/resume.rb
vagrant-0.5.0 lib/vagrant/action/vm/resume.rb