-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Interpolate %{path}
in verify command
#3693
Interpolate %{path}
in verify command
#3693
Conversation
Can you add a comment indicating why there are two? Maybe that would give us a mild chance of remembering to remove the old one for Chef 13. |
@coderanger RFC says the variable name should be |
@ranjib I believe @coderanger was asking for a comment in the code for people who come across it later. I'm 👍 on having a code comment about why we have two. |
Yes, we can't remove |
@margueritepd that helper method name should be something different, in itself its not a test. may be platform_specific_command ? |
@stevendanna ah .. got it now |
Chef::Log.deprecate('%{file} is deprecated in favor of %{path}') if @command.include?('%{file}') or something like that. |
@coderanger comment and deprecation warning added, tests updated :) I didn't use |
@margueritepd there is a configuration option for treating deprecation warnings as errors. It's best to use |
@mcquin back to using |
👍 |
…-to-use-path-as-variable Interpolate `%{path}` in verify command
See #3232