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

[storage|rackspace] move rackspace storage to its own shared area (namespacing should probably be corrected)

This commit is contained in:
geemus 2011-08-24 14:12:29 -05:00
parent 8338c5f81a
commit ff6e439727
18 changed files with 10 additions and 10 deletions

View file

@ -5,10 +5,10 @@ module Fog
extend Fog::Provider
service(:cdn, 'cdn/rackspace')
service(:compute, 'compute/rackspace')
service(:storage, 'storage/rackspace')
service(:load_balancers, 'rackspace/load_balancers')
service(:cdn, 'cdn/rackspace')
service(:compute, 'compute/rackspace')
service(:storage, 'rackspace/storage')
service(:load_balancers, 'rackspace/load_balancers')
def self.authenticate(options)
rackspace_auth_url = options[:rackspace_auth_url] || "auth.api.rackspacecloud.com"

View file

@ -1,5 +1,5 @@
require 'fog/core/collection'
require 'fog/storage/models/rackspace/directory'
require 'fog/rackspace/models/storage/directory'
module Fog
module Storage

View file

@ -1,5 +1,5 @@
require 'fog/core/model'
require 'fog/storage/models/rackspace/files'
require 'fog/rackspace/models/storage/files'
module Fog
module Storage

View file

@ -1,5 +1,5 @@
require 'fog/core/collection'
require 'fog/storage/models/rackspace/file'
require 'fog/rackspace/models/storage/file'
module Fog
module Storage

View file

@ -5,13 +5,13 @@ module Fog
requires :rackspace_api_key, :rackspace_username
recognizes :rackspace_auth_url, :rackspace_servicenet, :rackspace_cdn_ssl, :persistent
model_path 'fog/storage/models/rackspace'
model_path 'fog/rackspace/models/storage'
model :directory
collection :directories
model :file
collection :files
request_path 'fog/storage/requests/rackspace'
request_path 'fog/rackspace/requests/storage'
request :delete_container
request :delete_object
request :get_container

View file

@ -21,7 +21,7 @@ module Fog
require 'fog/ninefold/storage'
Fog::Storage::Ninefold.new(attributes)
when :rackspace
require 'fog/storage/rackspace'
require 'fog/rackspace/storage'
Fog::Storage::Rackspace.new(attributes)
else
raise ArgumentError.new("#{provider} is not a recognized storage provider")