Method: Fog::Rackspace::LoadBalancers::Real#authenticate
- Defined in:
- lib/fog/rackspace/load_balancers.rb
permalink #authenticate ⇒ Object
[View source]
146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/fog/rackspace/load_balancers.rb', line 146 def authenticate = { :rackspace_api_key => @rackspace_api_key, :rackspace_username => @rackspace_username, :rackspace_auth_url => @rackspace_auth_url } credentials = Fog::Rackspace.authenticate(, @connection_options) @auth_token = credentials['X-Auth-Token'] account_id = credentials['X-Server-Management-Url'].match(/.*\/([\d]+)$/)[1] @path = "#{@path}/#{account_id}" end |