Sha256: 8abf430a379e9d443754b02b156755076760957ef3b950ddf69608eeccc0c30e

Contents?: true

Size: 522 Bytes

Versions: 35

Compression:

Stored size: 522 Bytes

Contents

require 'fog/openstack/auth/catalog'

module Fog
  module OpenStack
    module Auth
      module Catalog
        class V2
          include Fog::OpenStack::Auth::Catalog

          def endpoint_match?(endpoint, interface, region)
            if endpoint.key?("#{interface}URL")
              true unless !region.nil? && endpoint['region'] != region
            end
          end

          def endpoint_url(endpoint, interface)
            endpoint["#{interface}URL"]
          end
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.1.2 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-fork-99 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.1.0 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.1.0.pre lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.11 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.10 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.9 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.10 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.8 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.7 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.9 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.6 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.5 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.8 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.7 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.4 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.6 lib/fog/openstack/auth/catalog/v2.rb