From 4848c89b7cc5e4a4d4fac7c8bff962f7df69f719 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 11 Aug 2020 13:30:10 -0700 Subject: File.exists? -> File.exist? Update some of these methods Signed-off-by: Tim Smith --- lib/chef/shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/shell.rb') diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb index fbee4c093b..8429110eec 100644 --- a/lib/chef/shell.rb +++ b/lib/chef/shell.rb @@ -339,7 +339,7 @@ module Shell config[:config_file] = config_file_for_shell_mode(environment) config_msg = config[:config_file] || "none (standalone session)" puts "loading configuration: #{config_msg}" - Chef::Config.from_file(config[:config_file]) if !config[:config_file].nil? && File.exists?(config[:config_file]) && File.readable?(config[:config_file]) + Chef::Config.from_file(config[:config_file]) if !config[:config_file].nil? && File.exist?(config[:config_file]) && File.readable?(config[:config_file]) Chef::Config.merge!(config) end -- cgit v1.2.1