1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace] updated Rackspace to return a list of all services

This commit is contained in:
Kyle Rames 2013-01-15 10:19:40 -06:00
parent 88740cb616
commit 133cda960f
3 changed files with 13 additions and 3 deletions

View file

@ -45,6 +45,13 @@ class Rackspace < Fog::Bin
when :storage
Fog::Logger.warning("Rackspace[:storage] is not recommended, use Storage[:rackspace] for portability")
Fog::Storage.new(:provider => 'Rackspace')
when :identity
Fog::Logger.warning("Rackspace[:identity] is not recommended, use Identity[:rackspace] for portability")
Fog::Identity.new(:provider => 'Rackspace')
when :databases
Fog::Rackspace::Databases.new
when :block_storage
Fog::Rackspace::BlockStorage.new
else
raise ArgumentError, "Unrecognized service: #{key.inspect}"
end

View file

@ -8,6 +8,9 @@ module Fog
def self.new(attributes)
attributes = attributes.dup # Prevent delete from having side effects
case provider = attributes.delete(:provider).to_s.downcase.to_sym
when :rackspace
require 'fog/rackspace/identity'
Fog::Rackspace::Identity.new(attributes)
when :openstack
require 'fog/openstack/identity'
Fog::Identity::OpenStack.new(attributes)

View file

@ -4,9 +4,9 @@ module Fog
class Real
def set_ssl_termination(load_balancer_id, securePort, privatekey, certificate, options = {})
data = {
securePort: securePort,
privatekey: privatekey,
certificate: certificate
:securePort => securePort,
:privatekey => privatekey,
:certificate => certificate
}
if options.has_key? :intermediate_certificate