Sha256: 6f9cd108887b54d1d544a44ab8924645014453d4bd32d91a2d6bc91fc3ad2188
Contents?: true
Size: 671 Bytes
Versions: 9
Compression:
Stored size: 671 Bytes
Contents
module Fog module Ovirt class Compute class V4 class Real def list_clusters(opts = {}) opts[:search] = create_search_by_datacenter(:search => opts[:search], :datacenter => datacenter_hash[:name]) client.system_service.clusters_service.list(opts).map { |ovirt_obj| ovirt_attrs(ovirt_obj) } end end class Mock def list_clusters(_filters = {}) xml = read_xml "clusters.xml" Nokogiri::XML(xml).xpath("/clusters/cluster").map do |cl| ovirt_attrs OvirtSDK4::Reader.read(cl.to_s) end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems