Method: Beaker::NetworkManager#cleanup

Defined in:
lib/beaker/network_manager.rb

#cleanupObject

Shut down network connections and revert all provisioned virtual machines



87
88
89
90
91
92
93
94
95
96
97
# File 'lib/beaker/network_manager.rb', line 87

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

  if @hypervisors
    @hypervisors.each_key do |type|
      @hypervisors[type].cleanup
    end
  end
  @hypervisors = nil
end