summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-08-18 13:11:01 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-08-24 22:30:37 -0700
commitba934c5910b9af3bf64300794ec2a35fa8528448 (patch)
treed8856b59c458abf92a96b42899544af03f6d5221 /Gemfile
parent894e9d4bf863d307c0090476df2ff551a9856fb9 (diff)
downloadchef-ba934c5910b9af3bf64300794ec2a35fa8528448.tar.gz
Fix dll copying in Gemfile to remove Dir.pwd
We can invoke bundler from other directories Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index bc74f62960..9346f30bac 100644
--- a/Gemfile
+++ b/Gemfile
@@ -87,7 +87,7 @@ eval_gemfile("./Gemfile.local") if File.exist?("./Gemfile.local")
if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
instance_eval do
ruby_exe_dir = RbConfig::CONFIG["bindir"]
- assemblies = Dir.glob(File.expand_path("distro/ruby_bin_folder", Dir.pwd) + "/*.dll")
+ assemblies = Dir.glob(File.expand_path("distro/ruby_bin_folder", File.dirname(__FILE__)) + "/*.dll")
FileUtils.cp_r assemblies, ruby_exe_dir, verbose: false unless ENV["_BUNDLER_WINDOWS_DLLS_COPIED"]
ENV["_BUNDLER_WINDOWS_DLLS_COPIED"] = "1"
end