diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-11-15 15:03:32 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-06 13:08:26 -0800 |
commit | db85ca494a484024404f1090c493613cc9521662 (patch) | |
tree | cc655fce7e3bfaa450a697889f2e8f2e5c80d38d /lib/chef/resource | |
parent | d218f942628da9a7302f1cc166abec0ea4fdeba2 (diff) | |
download | chef-db85ca494a484024404f1090c493613cc9521662.tar.gz |
fix Style/MultilineIfModifier
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/file/verification.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/chef/resource/file/verification.rb b/lib/chef/resource/file/verification.rb index cf5585e5cf..3400684bc5 100644 --- a/lib/chef/resource/file/verification.rb +++ b/lib/chef/resource/file/verification.rb @@ -108,10 +108,12 @@ 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.deprecated(:verify_file, - "%{file} is deprecated in verify command and will not be "\ - "supported in Chef 13. Please use %{path} instead." - ) if @command.include?("%{file}") + if @command.include?("%{file}") + Chef.deprecated(:verify_file, + "%{file} is deprecated in verify command and will not be "\ + "supported in Chef 13. Please use %{path} instead." + ) + end command = @command % { :file => path, :path => path } interpreter = Chef::GuardInterpreter.for_resource(@parent_resource, command, @command_opts) interpreter.evaluate |