lib/beaker/network_manager.rb in beaker-1.12.1 vs lib/beaker/network_manager.rb in beaker-1.12.2

- old
+ new

@@ -1,11 +1,7 @@ -%w(hypervisor).each do |lib| - begin - require "beaker/#{lib}" - rescue LoadError - require File.expand_path(File.join(File.dirname(__FILE__), lib)) - end +[ 'hypervisor' ].each do |lib| + require "beaker/#{lib}" end module Beaker #Object that holds all the provisioned and non-provisioned virtual machines. #Controls provisioning, configuration, validation and cleanup of those virtual machines. @@ -71,9 +67,19 @@ #@raise [Exception] Raise an exception if virtual machines fail to be configured def configure if @hypervisors @hypervisors.each_key do |type| @hypervisors[type].configure + end + end + end + + # configure proxy on all provioned machines + #@raise [Exception] Raise an exception if virtual machines fail to be configured + def package_proxy + if @hypervisors + @hypervisors.each_key do |type| + @hypervisors[type].package_proxy end end end #Shut down network connections and revert all provisioned virtual machines