summaryrefslogtreecommitdiff
path: root/lib/chef/config.rb
diff options
context:
space:
mode:
authorKartik Null Cating-Subramanian <ksubramanian@chef.io>2015-03-17 18:47:08 -0400
committerKartik Null Cating-Subramanian <ksubramanian@chef.io>2015-03-20 11:22:30 -0400
commit8adb5e38a31f47d84fcac6c825b5bd9279ba6aac (patch)
tree55052f72db7172064e5bb8b77869598a0ebc9b03 /lib/chef/config.rb
parent55d9ee24a8b2b14af415a36ff3c60b737dd84027 (diff)
downloadchef-8adb5e38a31f47d84fcac6c825b5bd9279ba6aac.tar.gz
Modify accesses to HOME to use path_helper instead.
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.