Sha256: 0cddfc566b993a74ac0cc0e3eb88f7f5992ade1ee23addbac13f87830184de41
Contents?: true
Size: 467 Bytes
Versions: 84
Compression:
Stored size: 467 Bytes
Contents
module Fog module Compute class Ovirt class Real def list_vm_interfaces(vm_id) client.vm_interfaces(vm_id).map {|ovirt_obj| ovirt_attrs ovirt_obj} end end class Mock def list_vm_interfaces(vm_id) xml = read_xml 'nics.xml' Nokogiri::XML(xml).xpath('/nics/nic').collect do |nic| ovirt_attrs OVIRT::Interface::new(self, nic) end end end end end end
Version data entries
84 entries across 84 versions & 14 rubygems