Class: AutoNetwork::Action::FilterNetworks

Inherits:
Base
  • Object
show all
Defined in:
lib/auto_network/action/filter_networks.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.

Convert auto_network interfaces to static private_network interfaces.

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
# File 'lib/auto_network/action/filter_networks.rb', line 13

def call(env)
  @env = env

  @global_env = @env[:env]

  filter if has_working_env?

  @app.call(@env)
end