Class: VagrantPlugins::Vrealize::Action::WaitForState

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-vrealize/action/wait_for_state.rb

Overview

This action will wait for a machine to reach a specific state or quit by timeout

Instance Method Summary collapse

Constructor Details

#initialize(app, env, state, timeout) ⇒ WaitForState

env will be false in case of timeout.

Parameters:

  • state (Symbol)

    Target machine state.

  • timeout (Number)

    Timeout in seconds.



12
13
14
15
16
17
# File 'lib/vagrant-vrealize/action/wait_for_state.rb', line 12

def initialize(app, env, state, timeout)
  @app     = app
  @logger  = Log4r::Logger.new("vagrant_vrealize::action::wait_for_state")
  @state   = state
  @timeout = timeout
end

Instance Method Details

#call(env) ⇒ Object



19
20
21
# File 'lib/vagrant-vrealize/action/wait_for_state.rb', line 19

def call(env)
  fail NotImplementedError
end