mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[cdn|aws] move aws cdn to its own shared area (namespacing should probably be corrected)
This commit is contained in:
parent
0e5fe57e3d
commit
2abb668040
21 changed files with 14 additions and 14 deletions
|
@ -6,7 +6,7 @@ module Fog
|
|||
extend Fog::Provider
|
||||
|
||||
service(:auto_scaling, 'aws/auto_scaling')
|
||||
service(:cdn, 'cdn/aws')
|
||||
service(:cdn, 'aws/cdn')
|
||||
service(:compute, 'compute/aws')
|
||||
service(:cloud_formation, 'aws/cloud_formation')
|
||||
service(:cloud_watch, 'aws/cloud_watch')
|
||||
|
|
|
@ -5,9 +5,9 @@ module Fog
|
|||
requires :aws_access_key_id, :aws_secret_access_key
|
||||
recognizes :host, :path, :port, :scheme, :version, :persistent
|
||||
|
||||
model_path 'fog/cdn/models/aws'
|
||||
model_path 'fog/aws/cdn/models'
|
||||
|
||||
request_path 'fog/cdn/requests/aws'
|
||||
request_path 'fog/aws/requests/cdn'
|
||||
request 'delete_distribution'
|
||||
request 'delete_streaming_distribution'
|
||||
request 'get_distribution'
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/distribution'
|
||||
require 'fog/aws/parsers/cdn/distribution'
|
||||
|
||||
# Get information about a distribution from CloudFront
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/get_distribution_list'
|
||||
require 'fog/aws/parsers/cdn/get_distribution_list'
|
||||
|
||||
# List information about distributions in CloudFront
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/get_invalidation_list'
|
||||
require 'fog/aws/parsers/cdn/get_invalidation_list'
|
||||
|
||||
# ==== Parameters
|
||||
# * options<~Hash> - config arguments for list. Defaults to {}.
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/streaming_distribution'
|
||||
require 'fog/aws/parsers/cdn/streaming_distribution'
|
||||
|
||||
# Get information about a streaming distribution from CloudFront
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/get_streaming_distribution_list'
|
||||
require 'fog/aws/parsers/cdn/get_streaming_distribution_list'
|
||||
|
||||
# List information about distributions in CloudFront
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/distribution'
|
||||
require 'fog/aws/parsers/cdn/distribution'
|
||||
|
||||
# create a new distribution in CloudFront
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/post_invalidation'
|
||||
require 'fog/aws/parsers/cdn/post_invalidation'
|
||||
|
||||
# List information about distributions in CloudFront
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/streaming_distribution'
|
||||
require 'fog/aws/parsers/cdn/streaming_distribution'
|
||||
|
||||
# create a new streaming distribution in CloudFront
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/distribution'
|
||||
require 'fog/aws/parsers/cdn/distribution'
|
||||
|
||||
# update a distribution in CloudFront
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/cdn/parsers/aws/streaming_distribution'
|
||||
require 'fog/aws/parsers/cdn/streaming_distribution'
|
||||
|
||||
# update a streaming distribution in CloudFront
|
||||
#
|
|
@ -9,7 +9,7 @@ module Fog
|
|||
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'
|
||||
require 'fog/aws/cdn'
|
||||
Fog::CDN::AWS.new(attributes)
|
||||
when :rackspace
|
||||
require 'fog/cdn/rackspace'
|
||||
|
|
Loading…
Reference in a new issue