Module: Fog::Identity

Defined in:
lib/rackspace-fog/identity.rb,
lib/rackspace-fog/openstack/identity.rb,
lib/rackspace-fog/openstack/models/identity/role.rb,
lib/rackspace-fog/openstack/models/identity/user.rb,
lib/rackspace-fog/openstack/models/identity/roles.rb,
lib/rackspace-fog/openstack/models/identity/users.rb,
lib/rackspace-fog/openstack/models/identity/tenant.rb,
lib/rackspace-fog/openstack/models/identity/tenants.rb,
lib/rackspace-fog/openstack/requests/identity/get_role.rb,
lib/rackspace-fog/openstack/requests/identity/get_tenant.rb,
lib/rackspace-fog/openstack/requests/identity/list_roles.rb,
lib/rackspace-fog/openstack/requests/identity/list_users.rb,
lib/rackspace-fog/openstack/requests/identity/check_token.rb,
lib/rackspace-fog/openstack/requests/identity/create_role.rb,
lib/rackspace-fog/openstack/requests/identity/create_user.rb,
lib/rackspace-fog/openstack/requests/identity/delete_role.rb,
lib/rackspace-fog/openstack/requests/identity/delete_user.rb,
lib/rackspace-fog/openstack/requests/identity/update_user.rb,
lib/rackspace-fog/openstack/requests/identity/list_tenants.rb,
lib/rackspace-fog/openstack/requests/identity/create_tenant.rb,
lib/rackspace-fog/openstack/requests/identity/delete_tenant.rb,
lib/rackspace-fog/openstack/requests/identity/update_tenant.rb,
lib/rackspace-fog/openstack/requests/identity/get_user_by_id.rb,
lib/rackspace-fog/openstack/requests/identity/validate_token.rb,
lib/rackspace-fog/openstack/requests/identity/create_user_role.rb,
lib/rackspace-fog/openstack/requests/identity/delete_user_role.rb,
lib/rackspace-fog/openstack/requests/identity/get_user_by_name.rb,
lib/rackspace-fog/openstack/requests/identity/get_tenants_by_id.rb,
lib/rackspace-fog/openstack/requests/identity/add_user_to_tenant.rb,
lib/rackspace-fog/openstack/requests/identity/get_tenants_by_name.rb,
lib/rackspace-fog/openstack/requests/identity/list_user_global_roles.rb,
lib/rackspace-fog/openstack/requests/identity/remove_user_from_tenant.rb,
lib/rackspace-fog/openstack/requests/identity/list_endpoints_for_token.rb,
lib/rackspace-fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb

Defined Under Namespace

Classes: OpenStack

Class Method Summary collapse

Class Method Details

.[](provider) ⇒ Object



4
5
6
# File 'lib/rackspace-fog/identity.rb', line 4

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

.new(attributes) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/rackspace-fog/identity.rb', line 8

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 'rackspace-fog/openstack/identity'
    Fog::Identity::OpenStack.new(attributes)
  else
    raise ArgumentError.new("#{provider} has no identity service")
  end
end

.providersObject



19
20
21
# File 'lib/rackspace-fog/identity.rb', line 19

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