Sha256: 9359dba12d5a427f65dd271aa99f29492816ace875de3eb6a5c3fa4fbd11e8cd
Contents?: true
Size: 384 Bytes
Versions: 11
Compression:
Stored size: 384 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={}) path = "/hosts" path += search_url(opts) unless filtered_api http_get(path).xpath('/hosts/host').collect do |h| OVIRT::Host::new(self, h) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems