summaryrefslogtreecommitdiff
path: root/lib/chef/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/config.rb')
-rw-r--r--lib/chef/config.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb
index 4595e9e33e..058e74e83d 100644
--- a/lib/chef/config.rb
+++ b/lib/chef/config.rb
@@ -570,12 +570,8 @@ class Chef
ENV
end
- def self.windows_home_path
- env['SYSTEMDRIVE'] + env['HOMEPATH'] if env['SYSTEMDRIVE'] && env['HOMEPATH']
- end
-
# returns a platform specific path to the user home dir if set, otherwise default to current directory.
- default( :user_home ) { env['HOME'] || windows_home_path || env['USERPROFILE'] || Dir.pwd }
+ default( :user_home ) { PathHelper.home || Dir.pwd }
# Enable file permission fixup for selinux. Fixup will be done
# only if selinux is enabled in the system.