Last active
August 29, 2015 13:57
-
-
Save elight/9665804 to your computer and use it in GitHub Desktop.
This file contains 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 characters
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 | |
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 |
Have you run this code at all, or was this purely a design effort based on what you know the code can/should do?
I am gonna try and work these ideas into my existing work at fog-openstack-tng / fog_hp_tng. I have working tests and everything so it should be somewhat comprehensive. As comprehensive as a spike can be that is
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
question... how where you thinking of token key mapping from :rackspace -> openstack. hp etc? Dont you need a place to do that?