Sha256: 91cd38e0820a96e98a3ae2e3b64a3acbe9f6ebf831615c4c8c9aabaea347ed42

Contents?: true

Size: 564 Bytes

Versions: 16

Compression:

Stored size: 564 Bytes

Contents

module Fog
  module Identity

    def self.[](provider)
      self.new(:provider => provider)
    end

    def self.new(attributes)
      attributes = attributes.dup # Prevent delete from having side effects
      case provider = attributes.delete(:provider).to_s.downcase.to_sym
      when :openstack
        require 'fog/openstack/identity'
        Fog::Identity::OpenStack.new(attributes)
      else
        raise ArgumentError.new("#{provider} has no identity service")
      end
    end

    def self.providers
      Fog.services[:idenity]
    end

  end
end

Version data entries

16 entries across 16 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/identity.rb
fog-nirvanix-1.8.1 lib/fog/identity.rb
fog-parser-fix-1.6.1 lib/fog/identity.rb
fog-test-again-1.6.0 lib/fog/identity.rb
fog-parser-fix-1.6.0 lib/fog/identity.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/identity.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/identity.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/identity.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/identity.rb
fog-sgonyea-1.8.1 lib/fog/identity.rb
fog-1.8.0 lib/fog/identity.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/identity.rb
fog-1.7.0 lib/fog/identity.rb
fog-1.6.0 lib/fog/identity.rb
fog-1.5.0 lib/fog/identity.rb
fog-1.4.0 lib/fog/identity.rb