module Virt

Public Class Methods

connect(uri, options = {}) click to toggle source
# File lib/virt.rb, line 14
def connect uri, options = {}
  @connection = Virt::Connection.new uri, options
end
connection() click to toggle source
# File lib/virt.rb, line 18
def connection
  return @connection if @connection and !@connection.closed?
  raise "No Connection or connection has been closed"
end