-
Notifications
You must be signed in to change notification settings - Fork 582
Add a function to update / regenerate deprecated shims #1349
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
Conversation
has_interface_with is a functionBreaking changes to this file MAY impact these 8 modules (near match):This module is declared in 318 of 580 indexed public
|
2f4fd92
to
c1089c1
Compare
c1089c1
to
d4048fb
Compare
Rakefile
Outdated
repeated_param 'Any', :args | ||
end | ||
def deprecation_gen(*args) | ||
call_function('deprecation', '#{function_name}', 'This method is deprecated, please use stdlib::#{function_name} instead.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Entirely my bad as I tend to use method
and function
interchangeably. In puppet land though, functions are only ever really referred to as functions.
call_function('deprecation', '#{function_name}', 'This method is deprecated, please use stdlib::#{function_name} instead.') | |
call_function('deprecation', '#{function_name}', 'This function is deprecated, please use stdlib::#{function_name} instead.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Fixed!
d4048fb
to
7c1dbc0
Compare
In order to move existing unamespaced functions to the stdlib namespace (puppetlabs#1346) without breaking backwards compatibility, we need some compatibility shims. They will all look-like the same, so add a rake task to regenerate them if we need to update them.
7c1dbc0
to
14b4150
Compare
In order to move existing unamespaced functions to the stdlib namespace
(#1346) without breaking backwards compatibility, we need some
compatibility shims. They will all look-like the same, so add a rake
task to regenerate them if we need to update them.
This will help with #1346.