mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[cdn|rackspace] move rackspace cdn to its own shared area (namespacing should probably be corrected)
This commit is contained in:
parent
2abb668040
commit
a662046d1a
7 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@ module Fog
|
|||
require 'fog/aws/cdn'
|
||||
Fog::CDN::AWS.new(attributes)
|
||||
when :rackspace
|
||||
require 'fog/cdn/rackspace'
|
||||
require 'fog/rackspace/cdn'
|
||||
Fog::CDN::Rackspace.new(attributes)
|
||||
else
|
||||
raise ArgumentError.new("#{provider} is not a recognized cdn provider")
|
||||
|
|
|
@ -5,7 +5,7 @@ module Fog
|
|||
|
||||
extend Fog::Provider
|
||||
|
||||
service(:cdn, 'cdn/rackspace')
|
||||
service(:cdn, 'rackspace/cdn')
|
||||
service(:compute, 'compute/rackspace')
|
||||
service(:storage, 'rackspace/storage')
|
||||
service(:load_balancers, 'rackspace/load_balancers')
|
||||
|
|
|
@ -5,9 +5,9 @@ module Fog
|
|||
requires :rackspace_api_key, :rackspace_username
|
||||
recognizes :rackspace_auth_url, :persistent
|
||||
|
||||
model_path 'fog/cdn/models/rackspace'
|
||||
model_path 'fog/rackspace/models/cdn'
|
||||
|
||||
request_path 'fog/cdn/requests/rackspace'
|
||||
request_path 'fog/rackspace/requests/cdn'
|
||||
request :get_containers
|
||||
request :head_container
|
||||
request :post_container
|
Loading…
Add table
Reference in a new issue