diff options
author | JOVE Bastien <bastien.jove@cbp-group.com> | 2016-07-04 17:27:40 +0200 |
---|---|---|
committer | JOVE Bastien <bastien.jove@cbp-group.com> | 2016-07-04 17:27:40 +0200 |
commit | a35818d68df51e768a5717f3b451853248d28797 (patch) | |
tree | 58b712fc697151ea98a86fc9796645d03993e9be | |
parent | f5cae5ea1b156515af1e38df53df35ce606404db (diff) | |
download | chef-a35818d68df51e768a5717f3b451853248d28797.tar.gz |
Fix #5078 using cwd parameter instead of Dir.pwd
-rw-r--r-- | chef-config/lib/chef-config/config.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb index 094c8641a3..a194edc80e 100644 --- a/chef-config/lib/chef-config/config.rb +++ b/chef-config/lib/chef-config/config.rb @@ -132,8 +132,8 @@ module ChefConfig until File.directory?(PathHelper.join(path, "cookbooks")) || File.directory?(PathHelper.join(path, "cookbook_artifacts")) new_path = File.expand_path("..", path) if new_path == path - ChefConfig.logger.warn("No cookbooks directory found at or above current directory. Assuming #{Dir.pwd}.") - return Dir.pwd + ChefConfig.logger.warn("No cookbooks directory found at or above current directory. Assuming #{cwd}.") + return cwd end path = new_path end |