Sha256: 16f53042adf794369c72e9a82d056032784cbdfca48cd590c252bd51ea6554ba

Contents?: true

Size: 537 Bytes

Versions: 6

Compression:

Stored size: 537 Bytes

Contents

module Fog
  module Ovirt
    class Compute
      class V3
        class Real
          def datacenters(filter = {})
            client.datacenters(filter).map { |ovirt_obj| ovirt_attrs ovirt_obj }
          end
        end

        class Mock
          def datacenters(_filters = {})
            xml = read_xml "data_centers.xml"
            Nokogiri::XML(xml).xpath("/data_centers/data_center").map do |dc|
              ovirt_attrs OVIRT::DataCenter.new(self, dc)
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-ovirt-1.2.5 lib/fog/ovirt/requests/compute/v3/datacenters.rb
fog-ovirt-1.2.4 lib/fog/ovirt/requests/compute/v3/datacenters.rb
fog-ovirt-1.2.3 lib/fog/ovirt/requests/compute/v3/datacenters.rb
fog-ovirt-1.2.2 lib/fog/ovirt/requests/compute/v3/datacenters.rb
fog-ovirt-1.2.1 lib/fog/ovirt/requests/compute/v3/datacenters.rb
fog-ovirt-1.2.0 lib/fog/ovirt/requests/compute/v3/datacenters.rb