Class: VagrantPlugins::Vmpooler::Action::ResumeServer

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-vmpooler/action/resume_server.rb

Overview

This starts a suspended server, if there is one.

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ ResumeServer

Returns a new instance of ResumeServer.



8
9
10
11
# File 'lib/vagrant-vmpooler/action/resume_server.rb', line 8

def initialize(app, env)
  @app    = app
  @logger = Log4r::Logger.new("vagrant_vmpooler::action::resume_server")
end

Instance Method Details

#call(env) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/vagrant-vmpooler/action/resume_server.rb', line 13

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

    # raise "not implemented"
  end

  @app.call(env)
end