summaryrefslogtreecommitdiff
path: root/lib/chef/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r--lib/chef/client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index 099c061a96..ff2f310130 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -638,7 +638,7 @@ class Chef
if !config[:client_key]
events.skipping_registration(client_name, config)
logger.trace("Client key is unspecified - skipping registration")
- elsif File.exists?(config[:client_key])
+ elsif File.exist?(config[:client_key])
events.skipping_registration(client_name, config)
logger.trace("Client key #{config[:client_key]} is present - skipping registration")
else
@@ -878,7 +878,7 @@ class Chef
end
def empty_directory?(path)
- !File.exists?(path) || (Dir.entries(path).size <= 2)
+ !File.exist?(path) || (Dir.entries(path).size <= 2)
end
def is_last_element?(index, object)