diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-01-26 08:21:19 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-01-26 08:37:17 -0800 |
commit | dd759fa7e44214c12e892a157264779423f3a68c (patch) | |
tree | 6948ea98f29289b4003488911eeaac56600d020d /lib/chef/formatters | |
parent | f27f8f1781695d557b71298d483d440439671936 (diff) | |
download | chef-dd759fa7e44214c12e892a157264779423f3a68c.tar.gz |
Replace deprecated File.exists? with File.exist? in more places
Just some boring cleanup
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/formatters')
-rw-r--r-- | lib/chef/formatters/error_inspectors/resource_failure_inspector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb b/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb index 905a438f56..8ddae24e6d 100644 --- a/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb +++ b/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb @@ -66,7 +66,7 @@ class Chef @snippet ||= begin if (file = parse_source) && (line = parse_line(file)) - return nil unless ::File.exists?(file) + return nil unless ::File.exist?(file) lines = IO.readlines(file) |