Sha256: fbe42c4f102a7c0da78a4f61f8564a620bd492d1dfaa15385cb722c9a792ae3d
Contents?: true
Size: 460 Bytes
Versions: 80
Compression:
Stored size: 460 Bytes
Contents
module Fog module Compute class Ovirt class Real def list_vm_volumes(vm_id) client.vm_volumes(vm_id).map {|ovirt_obj| ovirt_attrs ovirt_obj} end end class Mock def list_vm_volumes(vm_id) xml = read_xml 'volumes.xml' Nokogiri::XML(xml).xpath('/disks/disk').collect do |vol| ovirt_attrs OVIRT::Volume::new(self, vol) end end end end end end
Version data entries
80 entries across 80 versions & 13 rubygems