Sha256: b760ea10d4dbf3f93488f709ec55d69ad0474c670c99110750adfe8412e198d5
Contents?: true
Size: 462 Bytes
Versions: 38
Compression:
Stored size: 462 Bytes
Contents
module Fog module Compute class Ovirt 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
Version data entries
38 entries across 38 versions & 5 rubygems