Method: Beaker::NetworkManager#cleanup

Defined in:
lib/beaker/network_manager.rb

#cleanupObject

Shut down network connections and revert all provisioned virtual machines



110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/beaker/network_manager.rb', line 110

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