Method: Fog::Rackspace::LoadBalancers::Real#authenticate

Defined in:
lib/fog/rackspace/load_balancers.rb

#authenticateObject

[View source]

146
147
148
149
150
151
152
153
154
155
156
# File 'lib/fog/rackspace/load_balancers.rb', line 146

def authenticate
  options = {
    :rackspace_api_key  => @rackspace_api_key,
    :rackspace_username => @rackspace_username,
    :rackspace_auth_url => @rackspace_auth_url
  }
  credentials = Fog::Rackspace.authenticate(options, @connection_options)
  @auth_token = credentials['X-Auth-Token']
   = credentials['X-Server-Management-Url'].match(/.*\/([\d]+)$/)[1]
  @path = "#{@path}/#{}"
end