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

Revert "allow symbol or string for top level compute/storage"

This reverts commit 74469880ef.

all the other config is strings, leave them this way for consistency
This commit is contained in:
geemus 2010-11-03 17:31:07 -07:00
parent 74469880ef
commit 3b59607a14
2 changed files with 13 additions and 13 deletions

View file

@ -2,26 +2,26 @@ module Fog
class Storage
def self.new(attributes)
case attributes.delete(:provider).to_sym
when :AWS
case attributes.delete(:provider)
when 'AWS'
require 'fog/aws'
Fog::AWS::Compute.new(attributes)
when :Bluebox
when 'Bluebox'
require 'fog/bluebox'
Fog::Bluebox::Compute.new(attributes)
when :GoGrid
when 'GoGrid'
require 'fog/go_grid'
Fog::GoGrid::Compute.new(attributes)
when :Linode
when 'Linode'
require 'fog/linode'
Fog::Linode::Compute.new(attributes)
when :NewServers
when 'NewServers'
require 'fog/new_servers'
Fog::NewServers::Compute.new(attributes)
when :Rackspace
when 'Rackspace'
require 'fog/rackspace'
Fog::Rackspace::Compute.new(attributes)
when :Slicehost
when 'Slicehost'
require 'fog/slicehost'
Fog::Slicehost::Compute.new(attributes)
else

View file

@ -2,17 +2,17 @@ module Fog
class Storage
def self.new(attributes)
case provider = attributes.delete(:provider).to_sym
when :AWS
case provider = attributes.delete(:provider)
when 'AWS'
require 'fog/aws'
Fog::AWS::Storage.new(attributes)
when :Google
when 'Google'
require 'fog/google'
Fog::Google::Storage.new(attributes)
when :Local
when 'Local'
require 'fog/local'
Fog::Local::Storage.new(attributes)
when :Rackspace
when 'Rackspace'
require 'fog/rackspace'
Fog::Rackspace::Storage.new(attributes)
else