diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-01-26 08:21:19 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-02-02 11:50:43 -0800 |
commit | 5a2bab642653a715cd73be1f04062e37322b82a7 (patch) | |
tree | 0628a51dc69dfb2733bec04d612d065141192273 /lib/chef/handler | |
parent | 96e1f6d3f52e0ce6e66087ede8b65bf342154a26 (diff) | |
download | chef-file_exists.tar.gz |
Replace deprecated File.exists? with File.exist? in more placesfile_exists
Just some boring cleanup
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/handler')
-rw-r--r-- | lib/chef/handler/json_file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/handler/json_file.rb b/lib/chef/handler/json_file.rb index 6318c30d74..998f2b0e0e 100644 --- a/lib/chef/handler/json_file.rb +++ b/lib/chef/handler/json_file.rb @@ -51,7 +51,7 @@ class Chef end def build_report_dir - unless File.exists?(config[:path]) + unless File.exist?(config[:path]) FileUtils.mkdir_p(config[:path]) File.chmod(00700, config[:path]) end |