Skip to content

Commit 75e56fb

Browse files
committed
(maint) Replace deprecated File.exists? method
Ruby 3.2 dropped support for File.exists? This PR updates the orchestrator-client to use File.exist? to be ruby 3.2 compliant.
1 parent 434457b commit 75e56fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/orchestrator_client/config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ def defaults
4444
def load_config
4545
config = defaults
4646
if @load_files
47-
if File.exists?(global_conf) && File.readable?(global_conf)
47+
if File.exist?(global_conf) && File.readable?(global_conf)
4848
config = config.merge(load_file(global_conf))
4949
end
5050

5151
if @overrides['config-file']
5252
config = config.merge(load_file(@overrides['config-file']))
53-
elsif File.exists?(user_conf) && File.readable?(user_conf)
53+
elsif File.exist?(user_conf) && File.readable?(user_conf)
5454
config = config.merge(load_file(user_conf))
5555
end
5656
end

0 commit comments

Comments
 (0)