Class: AutoNetwork::Action::LoadPool

Inherits:
Base
  • Object
show all
Defined in:
lib/auto_network/action/load_pool.rb

Instance Method Summary collapse

Methods inherited from Base

#filter_private_network, #initialize, #machine_auto_networks, #machine_has_address?

Constructor Details

This class inherits a constructor from AutoNetwork::Action::Base

Instance Method Details

#call(env) ⇒ void

This method returns an undefined value.

Handle the loading and unloading of the auto_network pool

Parameters:

  • env (Hash)

Options Hash (env):

  • auto_network_pool (AutoNetwork::Pool)

    The global auto network pool

  • env (Vagrant::Environment)

    The Vagrant environment containing the active machines that need to be filtered.



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/auto_network/action/load_pool.rb', line 13

def call(env)
  @env = env

  if env_ready?
    setup_ivars
    deserialize! if AutoNetwork.pool_manager.nil?
    @app.call(@env)
  else
    @app.call(@env)
  end
end