class Fog::Compute::XenServer::Models::Server

Public Instance Methods

id() click to toggle source
# File lib/chef/provisioning/fog_driver/providers/xenserver.rb, line 166
def id
  uuid
end
public_ip_address() click to toggle source
# File lib/chef/provisioning/fog_driver/providers/xenserver.rb, line 174
def public_ip_address
  if xenstore_data["vm-data/ip"]
    xenstore_data["vm-data/ip"]
  else
    wait_for { tools_installed? }
    if tools_installed?
      guest_metrics.networks.first[1]
    else
      raise "Unable to return IP address. Virtual machine does not " \
      "have XenTools installed or a timeout occurred."
    end
  end
end
ready?() click to toggle source
# File lib/chef/provisioning/fog_driver/providers/xenserver.rb, line 188
def ready?
  running?
end
state() click to toggle source
# File lib/chef/provisioning/fog_driver/providers/xenserver.rb, line 170
def state
  attributes[:power_state]
end