summaryrefslogtreecommitdiff
path: root/lib/chef/handler/json_file.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-01-26 08:21:19 -0800
committerTim Smith <tsmith84@gmail.com>2021-02-02 11:50:43 -0800
commit5a2bab642653a715cd73be1f04062e37322b82a7 (patch)
tree0628a51dc69dfb2733bec04d612d065141192273 /lib/chef/handler/json_file.rb
parent96e1f6d3f52e0ce6e66087ede8b65bf342154a26 (diff)
downloadchef-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/json_file.rb')
-rw-r--r--lib/chef/handler/json_file.rb2
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