Method: Beaker::NetworkManager#cleanup

Defined in:
lib/beaker/network_manager.rb

#cleanupObject

Shut down network connections and revert all provisioned virtual machines



95
96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'lib/beaker/network_manager.rb', line 95

def cleanup
  #shut down connections
  @hosts.each {|host| host.close }

  if @hypervisors
    @hypervisors.each_key do |type|
      @hypervisors[type].cleanup
      @hypervisors[type].instance_variable_get(:@hosts).each do |host|
        log_sut_event host, false
      end
    end
  end
  @hypervisors = nil
end