Class: Fog::Rackspace::Service
- Inherits:
-
Object
- Object
- Fog::Rackspace::Service
show all
- Defined in:
- lib/fog/rackspace/service.rb
Direct Known Subclasses
CDN::Rackspace::Mock, CDN::Rackspace::Real, Compute::Rackspace::Mock, Compute::Rackspace::Real, Compute::RackspaceV2::Mock, Compute::RackspaceV2::Real, DNS::Rackspace::Mock, DNS::Rackspace::Real, BlockStorage::Mock, BlockStorage::Real, Databases::Mock, Databases::Real, LoadBalancers::Mock, LoadBalancers::Real, Storage::Rackspace::Mock, Storage::Rackspace::Real
Instance Method Summary
collapse
Instance Method Details
#authenticate(options) ⇒ Object
29
30
31
|
# File 'lib/fog/rackspace/service.rb', line 29
def authenticate(options)
self.send authentication_method, options
end
|
#endpoint_uri(service_endpoint = nil, endpoint_name = nil) ⇒ Object
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# 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
|
#region ⇒ Object
9
10
11
|
# File 'lib/fog/rackspace/service.rb', line 9
def region
raise Fog::Errors::NotImplemented.new("Please implement the #region method")
end
|
#service_name ⇒ Object
5
6
7
|
# File 'lib/fog/rackspace/service.rb', line 5
def service_name
raise Fog::Errors::NotImplemented.new("Please implement the #service_name method")
end
|