Sha256: 1d74b5977ce1048bc9c0750c9463dbbbd79916aab472dedbb9a3b0354312b0c2
Contents?: true
Size: 558 Bytes
Versions: 13
Compression:
Stored size: 558 Bytes
Contents
module Fog module Compute class Ovirt class V4 class Real def list_vm_interfaces(vm_id) client.system_service.vms_service.vm_service(vm_id).nics_service.list.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").map do |nic| ovirt_attrs OvirtSDK4::Reader.read(nic.to_s) end end end end end end end
Version data entries
13 entries across 11 versions & 2 rubygems