Method: Beaker::NetworkManager#cleanup

Defined in:
lib/beaker/network_manager.rb

#cleanupObject

Shut down network connections and revert all provisioned virtual machines



115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/beaker/network_manager.rb', line 115

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