Revisions
-
Evan Light renamed this gist
Mar 20, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Evan Light created this gist
Mar 20, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ require "fog/openstack/rackspace/version" module Fog module Openstack module Rackspace class Identity < Fog::Service US_ENDPOINT = 'https://identity.api.rackspacecloud.com/v2.0' UK_ENDPOINT = 'https://lon.identity.api.rackspacecloud.com/v2.0' requires :rackspace_username, :rackspace_api_key recognizes :rackspace_auth_url, :rackspace_region model_path 'fog/rackspace/models/identity' model :user collection :users model :role collection :roles model :credential collection :credentials model :tenant collection :tenants model :service_catalog def initialize(options = {}) options[:authenticator] ||= RackspaceAuthenticator @osc_identity = Fog::OpenStackCommon::Identity.new(options) end def method_missing(method, *args) @osc_identity.send(method, *args) end end end end end