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