summaryrefslogtreecommitdiff
path: root/lib/chef/handler/json_file.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-11-21 21:34:19 -0800
committerTim Smith <tsmith84@gmail.com>2020-11-27 15:04:01 -0800
commit6b2f219f13b7d28ee9277f98bf11e69903fefc92 (patch)
treece287b5e1e9674c6a2db05ecd712c2493cb6a450 /lib/chef/handler/json_file.rb
parent8bd0da60b8b5867566b4a2fbf339c7c97eb8bd6a (diff)
downloadchef-exists.tar.gz
Convert the last our of File.exists? to File.exist?exists
Standardize on the new method 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