summaryrefslogtreecommitdiff
path: root/chef-config
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2017-11-15 10:08:29 +0000
committerGitHub <noreply@github.com>2017-11-15 10:08:29 +0000
commit193007c6d2b3fdf5d87e4a1d97ee7fdac80344f6 (patch)
tree87d80a27d77d1985dda13c13f6a91cfbbcc274b9 /chef-config
parent933ba8f363ee6f38e49461563b1bd94a32257e63 (diff)
parent0762237c6deb110aad940e4514955ec07789e7c3 (diff)
downloadchef-193007c6d2b3fdf5d87e4a1d97ee7fdac80344f6.tar.gz
Merge pull request #6583 from thomasdziedzic/fix-warning
replace deprecated Dir.exists? with Dir.exist?
Diffstat (limited to 'chef-config')
-rw-r--r--chef-config/lib/chef-config/path_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/path_helper.rb b/chef-config/lib/chef-config/path_helper.rb
index e8a576c84f..c011c4f18a 100644
--- a/chef-config/lib/chef-config/path_helper.rb
+++ b/chef-config/lib/chef-config/path_helper.rb
@@ -235,7 +235,7 @@ module ChefConfig
paths = paths.map { |home_path| home_path.gsub(path_separator, ::File::SEPARATOR) if home_path }
# Filter out duplicate paths and paths that don't exist.
- valid_paths = paths.select { |home_path| home_path && Dir.exists?(home_path.force_encoding("utf-8")) }
+ valid_paths = paths.select { |home_path| home_path && Dir.exist?(home_path.force_encoding("utf-8")) }
valid_paths = valid_paths.uniq
# Join all optional path elements at the end.