Sha256: 3120261fe0bdfe8acb946ee2a3be53b328ba949d2ae00384e764ddd40f4714fc

Contents?: true

Size: 524 Bytes

Versions: 15

Compression:

Stored size: 524 Bytes

Contents

module Fog
  module Compute
    class Ovirt
      class V3
        class Real
          def list_clusters(filters = {})
            client.clusters(filters).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 OVIRT::Cluster.new(self, cl)
            end
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
fog-ovirt-1.1.6 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.1.5 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.1.4 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.1.3 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.1.2 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.1.1 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/list_clusters.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/list_clusters.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.1.0 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.0.4 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.0.3 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.0.2 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.0.1 lib/fog/ovirt/requests/compute/v3/list_clusters.rb
fog-ovirt-1.0.0 lib/fog/ovirt/requests/compute/v3/list_clusters.rb