diff options
author | Anshul Sharma <justanshulsharma@gmail.com> | 2014-10-31 06:32:12 +0530 |
---|---|---|
committer | Anshul Sharma <justanshulsharma@gmail.com> | 2014-10-31 06:32:12 +0530 |
commit | 927eff0bdaad1079c5a8a8aea1528fc352c35858 (patch) | |
tree | 25e8c0d0bc9f06df132ad771ccf06bc7e87164e3 | |
parent | 714d83d480fa4e7014e66f8972edbdf21125ad79 (diff) | |
download | chef-927eff0bdaad1079c5a8a8aea1528fc352c35858.tar.gz |
File.exists? is deprecated in favor of File.exist?
-rw-r--r-- | lib/chef/knife/core/object_loader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/object_loader.rb b/lib/chef/knife/core/object_loader.rb index 209f6987d4..698b09ac84 100644 --- a/lib/chef/knife/core/object_loader.rb +++ b/lib/chef/knife/core/object_loader.rb @@ -105,7 +105,7 @@ class Chef end def file_exists_and_is_readable?(file) - File.exists?(file) && File.readable?(file) + File.exist?(file) && File.readable?(file) end end |