Skip to content

Commit

Permalink
Warn that Fog::CDN::AWS is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredbeck committed Sep 6, 2018
1 parent 6b7a468 commit d8d867e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/fog/aws/cdn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,17 @@ def signature(params)
end
end
end
end

# @deprecated
Fog::CDN::AWS = Fog::AWS::CDN
# @deprecated
module CDN
# @deprecated
class AWS < Fog::AWS::CDN
# @deprecated
# @overrides Fog::Service.new (from the fog-core gem)
def self.new(*)
Fog::Logger.deprecation 'Fog::CDN::AWS is deprecated, please use Fog::AWS::CDN.'
super
end
end
end
end

0 comments on commit d8d867e

Please sign in to comment.