Sha256: a909e2552f09f06bd4d095560c59ea2d3579d054f633c019a6fa4e00789b69f0
Contents?: true
Size: 581 Bytes
Versions: 4
Compression:
Stored size: 581 Bytes
Contents
module Fog module CDN def self.[](provider) self.new(:provider => provider) end def self.new(attributes) attributes = attributes.dup # prevent delete from having side effects case provider = attributes.delete(:provider).to_s.downcase.to_sym when :aws require 'fog/cdn/aws' Fog::CDN::AWS.new(attributes) when :rackspace require 'fog/cdn/rackspace' Fog::CDN::Rackspace.new(attributes) else raise ArgumentError.new("#{provider} is not a recognized cdn provider") end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
fog-0.10.0 | lib/fog/cdn.rb |
fog4encbs-0.9.0.1 | lib/fog/cdn.rb |
fog4encbs-0.9.0 | lib/fog/cdn.rb |
fog-0.9.0 | lib/fog/cdn.rb |