mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix load paths for shared initializers
This commit is contained in:
parent
abe07ea14a
commit
0a85cd8a9a
5 changed files with 20 additions and 20 deletions
|
@ -5,10 +5,10 @@ module Fog
|
|||
attributes = attributes.dup # prevent delete from having side effects
|
||||
case provider = attributes.delete(:provider)
|
||||
when 'AWS'
|
||||
require 'fog/aws'
|
||||
require 'fog/cdn/aws'
|
||||
Fog::AWS::CDN.new(attributes)
|
||||
when 'Rackspace'
|
||||
require 'fog/rackspace'
|
||||
require 'fog/cdn/rackspace'
|
||||
Fog::Rackspace::CDN.new(attributes)
|
||||
else
|
||||
raise ArgumentError.new("#{provider} is not a recognized storage provider")
|
||||
|
|
|
@ -5,28 +5,28 @@ module Fog
|
|||
attributes = attributes.dup # prevent delete from having side effects
|
||||
case provider = attributes.delete(:provider)
|
||||
when 'AWS'
|
||||
require 'fog/aws'
|
||||
require 'fog/compute/aws'
|
||||
Fog::AWS::Compute.new(attributes)
|
||||
when 'Bluebox'
|
||||
require 'fog/bluebox'
|
||||
require 'fog/compute/bluebox'
|
||||
Fog::Bluebox::Compute.new(attributes)
|
||||
when 'Brightbox'
|
||||
require 'fog/brightbox'
|
||||
require 'fog/compute/brightbox'
|
||||
Fog::Brightbox::Compute.new(attributes)
|
||||
when 'GoGrid'
|
||||
require 'fog/go_grid'
|
||||
require 'fog/compute/go_grid'
|
||||
Fog::GoGrid::Compute.new(attributes)
|
||||
when 'Linode'
|
||||
require 'fog/linode'
|
||||
require 'fog/compute/linode'
|
||||
Fog::Linode::Compute.new(attributes)
|
||||
when 'NewServers'
|
||||
require 'fog/new_servers'
|
||||
require 'fog/compute/new_servers'
|
||||
Fog::NewServers::Compute.new(attributes)
|
||||
when 'Rackspace'
|
||||
require 'fog/rackspace'
|
||||
require 'fog/compute/rackspace'
|
||||
Fog::Rackspace::Compute.new(attributes)
|
||||
when 'Slicehost'
|
||||
require 'fog/slicehost'
|
||||
require 'fog/compute/slicehost'
|
||||
Fog::Slicehost::Compute.new(attributes)
|
||||
else
|
||||
raise ArgumentError.new("#{provider} is not a recognized compute provider")
|
||||
|
|
|
@ -5,16 +5,16 @@ module Fog
|
|||
attributes = attributes.dup # prevent delete from having side effects
|
||||
case provider = attributes.delete(:provider)
|
||||
when 'AWS'
|
||||
require 'fog/aws'
|
||||
require 'fog/dns/aws'
|
||||
Fog::AWS::DNS.new(attributes)
|
||||
when 'Linode'
|
||||
require 'fog/linode'
|
||||
require 'fog/dns/linode'
|
||||
Fog::Linode::DNS.new(attributes)
|
||||
when 'Slicehost'
|
||||
require 'fog/slicehost'
|
||||
require 'fog/dns/slicehost'
|
||||
Fog::Slicehost::DNS.new(attributes)
|
||||
when 'Zerigo'
|
||||
require 'fog/zerigo'
|
||||
require 'fog/dns/zerigo'
|
||||
Fog::Zerigo::DNS.new(attributes)
|
||||
else
|
||||
raise ArgumentError.new("#{provider} is not a recognized storage provider")
|
||||
|
|
|
@ -6,9 +6,9 @@ module Fog
|
|||
extend Fog::Provider
|
||||
|
||||
service(:cdn, 'cdn/rackspace')
|
||||
service(:compute, 'rackspace/compute')
|
||||
service(:compute, 'compute/rackspace')
|
||||
service(:files, 'storage/rackspace')
|
||||
service(:servers, 'rackspace/compute')
|
||||
service(:servers, 'compute/rackspace')
|
||||
service(:storage, 'storage/rackspace')
|
||||
|
||||
def self.authenticate(options)
|
||||
|
|
|
@ -5,16 +5,16 @@ module Fog
|
|||
attributes = attributes.dup # prevent delete from having side effects
|
||||
case provider = attributes.delete(:provider)
|
||||
when 'AWS'
|
||||
require 'fog/aws'
|
||||
require 'fog/storage/aws'
|
||||
Fog::AWS::Storage.new(attributes)
|
||||
when 'Google'
|
||||
require 'fog/google'
|
||||
require 'fog/storage/google'
|
||||
Fog::Google::Storage.new(attributes)
|
||||
when 'Local'
|
||||
require 'fog/local'
|
||||
require 'fog/storage/local'
|
||||
Fog::Local::Storage.new(attributes)
|
||||
when 'Rackspace'
|
||||
require 'fog/rackspace'
|
||||
require 'fog/storage/rackspace'
|
||||
Fog::Rackspace::Storage.new(attributes)
|
||||
else
|
||||
raise ArgumentError.new("#{provider} is not a recognized storage provider")
|
||||
|
|
Loading…
Reference in a new issue