Sha256: df86e1207fcdf864d4d46d74f60e620011a5b35683d60406d677df0475de121b
Contents?: true
Size: 337 Bytes
Versions: 17
Compression:
Stored size: 337 Bytes
Contents
module OVIRT class Client def disks(opts={}) path = "/disks" + search_url(opts) http_get(path).xpath('/disks/disk').collect do |d| OVIRT::Volume.new(self, d) end end def disk(disk_id) disk_xml = http_get("/disks/%s" % disk_id) OVIRT::Volume.new(self, disk_xml.root) end end end
Version data entries
17 entries across 15 versions & 2 rubygems