summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorStuart Preston <stuart@chef.io>2018-06-27 00:24:51 +0100
committerStuart Preston <stuart@chef.io>2018-06-27 00:24:51 +0100
commite2a74c1a3f7e8b0e5276abfb3d4ea96b51a94672 (patch)
tree526261b73d8b23863b7979e40eedc87821f08f18 /Gemfile
parent2925021aba749ee0c00c082b280c2aba12cc4be9 (diff)
downloadchef-e2a74c1a3f7e8b0e5276abfb3d4ea96b51a94672.tar.gz
Only copy dlls to target location once on bundle install
Signed-off-by: Stuart Preston <stuart@chef.io>
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 0a041760e5..bc3dd3f6eb 100644
--- a/Gemfile
+++ b/Gemfile
@@ -76,6 +76,7 @@ if RUBY_PLATFORM =~ /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")
- FileUtils.cp_r assemblies, ruby_exe_dir
+ FileUtils.cp_r assemblies, ruby_exe_dir, verbose: true unless ENV['_BUNDLER_WINDOWS_DLLS_COPIED']
+ ENV['_BUNDLER_WINDOWS_DLLS_COPIED'] = "1"
end
end