diff options
author | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2015-03-17 18:47:08 -0400 |
---|---|---|
committer | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2015-03-20 11:22:30 -0400 |
commit | 8adb5e38a31f47d84fcac6c825b5bd9279ba6aac (patch) | |
tree | 55052f72db7172064e5bb8b77869598a0ebc9b03 /lib/chef/config.rb | |
parent | 55d9ee24a8b2b14af415a36ff3c60b737dd84027 (diff) | |
download | chef-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.rb | 6 |
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. |