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

20 lines
484 B
Ruby
Raw Normal View History

2011-01-07 20:02:41 -05:00
module Fog
class CDN
def self.new(attributes)
attributes = attributes.dup # prevent delete from having side effects
case provider = attributes.delete(:provider)
when 'AWS'
require 'fog/aws'
Fog::AWS::CDN.new(attributes)
when 'Rackspace'
require 'fog/rackspace'
Fog::Rackspace::CDN.new(attributes)
else
raise ArgumentError.new("#{provider} is not a recognized storage provider")
end
end
end
end