summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2020-08-19 15:40:17 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-08-24 22:30:37 -0700
commitbc5b6a8388c5c61c7dcb2b1bb5962841e46ca543 (patch)
treec8c364242e034f36bc0a6c6c9bfd10ddb5ff5bec /Gemfile
parentba934c5910b9af3bf64300794ec2a35fa8528448 (diff)
downloadchef-bc5b6a8388c5c61c7dcb2b1bb5962841e46ca543.tar.gz
Signed-off-by: Lamont Granquist <lamont@chef.io> Co-authored-by: pete higgins <pete@peterhiggins.org>
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 9346f30bac..101e5df8a2 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", File.dirname(__FILE__)) + "/*.dll")
+ assemblies = Dir.glob(File.expand_path("distro/ruby_bin_folder", __dir__) + "/*.dll")
FileUtils.cp_r assemblies, ruby_exe_dir, verbose: false unless ENV["_BUNDLER_WINDOWS_DLLS_COPIED"]
ENV["_BUNDLER_WINDOWS_DLLS_COPIED"] = "1"
end