Sha256: 8abf430a379e9d443754b02b156755076760957ef3b950ddf69608eeccc0c30e

Contents?: true

Size: 522 Bytes

Versions: 36

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

36 entries across 36 versions & 3 rubygems

Version Path
fog-openstack-0.3.6 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.3 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.2 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.5 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.4 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.1 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.3 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-1.0.0 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.2 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.1 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.3.0 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.2.4 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.2.3 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.2.2 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.2.1 lib/fog/openstack/auth/catalog/v2.rb
fog-openstack-0.2.0 lib/fog/openstack/auth/catalog/v2.rb