diff options
author | marguerite <marguerite@pagerduty.com> | 2015-07-21 15:36:21 -0400 |
---|---|---|
committer | marguerite <marguerite@pagerduty.com> | 2015-07-22 09:40:29 -0400 |
commit | e330c30a6d9db16cc65f16164a40cfc96c0f6f7a (patch) | |
tree | 37d3dc91365b39683fc9fb88d9a77b8026991df1 /lib | |
parent | 577773bbb838a91fee53d1ad21dddfb5fd9dbd22 (diff) | |
download | chef-e330c30a6d9db16cc65f16164a40cfc96c0f6f7a.tar.gz |
Warn about deprecation `%{file}` interpolation in verify command
See chef/chef#3232
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/file/verification.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/resource/file/verification.rb b/lib/chef/resource/file/verification.rb index 6be1f912fd..faf4791884 100644 --- a/lib/chef/resource/file/verification.rb +++ b/lib/chef/resource/file/verification.rb @@ -108,6 +108,10 @@ class Chef def verify_command(path, opts) # First implementation interpolated `file`; docs & RFC claim `path` # is interpolated. Until `file` can be deprecated, interpolate both. + Chef::Log.deprecation( + '%{file} is deprecated in verify command and will not be '\ + 'supported in Chef 13. Please use %{path} instead.' + ) if @command.include?('%{file}') command = @command % {:file => path, :path => path} interpreter = Chef::GuardInterpreter.for_resource(@parent_resource, command, @command_opts) interpreter.evaluate |