Sha256: c292cb2cd4680ac3304c52ebcc7dec0a853cbbae24eb6b353c23be7d582c0890

Contents?: true

Size: 549 Bytes

Versions: 8

Compression:

Stored size: 549 Bytes

Contents

require "log4r"

module VagrantPlugins
  module Vmpooler
    module Action
      # This starts a suspended server, if there is one.
      class ResumeServer
        def initialize(app, env)
          @app    = app
          @logger = Log4r::Logger.new("vagrant_vmpooler::action::resume_server")
        end

        def call(env)
          if env[:machine].id
            env[:ui].info(I18n.t("vagrant_vmpooler.resuming_server"))

            # raise "not implemented"
          end

          @app.call(env)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vagrant-vmpooler-0.2.0 lib/vagrant-vmpooler/action/resume_server.rb
vagrant-vmpooler-0.1.9 lib/vagrant-vmpooler/action/resume_server.rb
vagrant-vmpooler-0.1.8 lib/vagrant-vmpooler/action/resume_server.rb
vagrant-vmpooler-0.1.7 lib/vagrant-vmpooler/action/resume_server.rb
vagrant-vmpooler-0.1.6 lib/vagrant-vmpooler/action/resume_server.rb
vagrant-vmpooler-0.1.5 lib/vagrant-vmpooler/action/resume_server.rb
vagrant-vmpooler-0.1.4 lib/vagrant-vmpooler/action/resume_server.rb
vagrant-vmpooler-0.1.2 lib/vagrant-vmpooler/action/resume_server.rb