Sha256: a133f1a726327f10a5b8dd85380fd9b26718cf2c1866f255b161fa571cabc201
Contents?: true
Size: 515 Bytes
Versions: 15
Compression:
Stored size: 515 Bytes
Contents
module Fog module Compute class Ovirt class V3 class Real def list_virtual_machines(filters = {}) client.vms(filters).map { |ovirt_obj| ovirt_attrs ovirt_obj } end end class Mock def list_virtual_machines(_filters = {}) xml = read_xml "vms.xml" Nokogiri::XML(xml).xpath("/vms/vm").map do |vm| ovirt_attrs OVIRT::VM.new(self, vm) end end end end end end end
Version data entries
15 entries across 13 versions & 2 rubygems