Parent

Class/Module Index [+]

Quicksearch

Fog::Compute::LibvirtUtil::URI

Attributes

uri[R]

Public Class Methods

new(uri) click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 12
def initialize(uri)
  @parsed_uri=::URI.parse(uri)
  @uri=uri
  return self
end

Public Instance Methods

command() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 71
def command
  value("command")
end
driver() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 32
def driver
  scheme=@parsed_uri.scheme
  return nil if scheme.nil?

  return scheme.split(/\+/).first
end
host() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 55
def host
  @parsed_uri.host
end
keyfile() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 79
def keyfile
  value("keyfile")
end
name() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 67
def name
  value("name")
end
netcat() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 83
def netcat
  value("netcat")
end
no_tty?() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 102
def no_tty?
  no_tty=value("no_tty")

  return false if no_tty.nil?

  if no_tty=="0"
    return false
  else
    return true
  end

end
no_verify?() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 87
def no_verify?
  no_verify=value("no_verify")
  return false if no_verify.nil?

  if no_verify.to_s=="0"
    return false
  else
    return true
  end
end
password() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 63
def password
  @parsed_uri.password
end
pkipath() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 119
def pkipath
  value("pkipath")
end
port() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 59
def port
  @parsed_uri.port
end
remote?() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 47
def remote?
  return !transport.nil?
end
scheme() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 28
def scheme
  return @parsed_uri.scheme
end
socket() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 75
def socket
  value("socket")
end
ssh_enabled?() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 39
def ssh_enabled?
  if remote?
    return transport.include?("ssh")
  else
    return false
  end
end
transport() click to toggle source

Transport will be part of the scheme The part after the plus sign f.i. qemu+ssh

# File lib/fog/libvirt/models/compute/util/uri.rb, line 21
def transport
  scheme=@parsed_uri.scheme
  return nil if scheme.nil?

  return scheme.split(/\+/)[1]
end
tty?() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 115
def tty?
  return !no_tty?
end
user() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 51
def user
  @parsed_uri.user
end
verify?() click to toggle source
# File lib/fog/libvirt/models/compute/util/uri.rb, line 98
def verify?
  return !no_verify?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.