# File lib/fog/rackspace/service.rb, line 29 def authenticate(options={}) self.send authentication_method, options end
# File lib/fog/rackspace/service.rb, line 13 def endpoint_uri(service_endpoint=nil, endpoint_name=nil) return @uri if @uri url = service_endpoint unless url if v1_authentication? raise "Service Endpoint must be specified via #{endpoint_name} parameter" else url = endpoint_uri_v2 end end @uri = URI.parse url end
# File lib/fog/rackspace/service.rb, line 9 def region raise Fog::Errors::NotImplemented.new("Please implement the #region method") end
# File lib/fog/rackspace/service.rb, line 33 def request(params, parse_json = true, &block) first_attempt = true begin response = @connection.request(request_params(params), &block) rescue Excon::Errors::Unauthorized => error raise error unless first_attempt first_attempt = false authenticate retry end process_response(response) if parse_json response end
Generated with the Darkfish Rdoc Generator 2.