-
-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename CDN::AWS to AWS::CDN #467
Conversation
Fixes fog-core deprecation warning ``` [fog][DEPRECATION] Unable to load Fog::AWS::CDN [fog][DEPRECATION] The format Fog::CDN::AWS is deprecated ``` Part of fog#466
👍 from me. Need someone active on this repo to look and merge tho |
How should I run tests locally? I couldn't find any docs on it. So, I just pushed and hoped for CI to pass. |
Also,
I don't know how to do a warning. ActiveSupport has |
I believe you can just overwrite the constructor raising a deprecation notice and call super in the next line. |
Sorry, I don't understand. Which constructor? Also, the assignment ..
.. is "by reference", so overwriting a method would affect both constants, wouldn't it? |
Yeap, the construction you made is not gonna work. You will have to open the class and inherit manually then overwrite the method initialize. If you take a look at the Sou you can open the class and define it like: class Fog::CDN::AWS < Fog::AWS::CDN
def self.new(config = {})
Fog::Logger.deprecation 'Your message here'
super(config)
end
end |
Done. Thanks. |
Looks good to me, @plribeiro3000 does that match with what you were asking? |
Fixes fog-core deprecation warning
Part of #466