Sha256: c95c7eb562e8bd1eac122726b3bdb451dfff935995977d5a4816f3c51daa4222
Contents?: true
Size: 421 Bytes
Versions: 8
Compression:
Stored size: 421 Bytes
Contents
module OVIRT class Client def host(host_id, opts={}) xml_response = http_get("/hosts/%s" % host_id) OVIRT::Host::new(self, xml_response.root) end def hosts(opts={}) search= opts[:search] || ("datacenter=%s" % current_datacenter.name) http_get("/hosts?search=%s" % CGI.escape(search)).xpath('/hosts/host').collect do |h| OVIRT::Host::new(self, h) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems