summaryrefslogtreecommitdiff
path: root/lib/bundler/gem_helper.rb
diff options
context:
space:
mode:
authorAgis Anastasopoulos <agis.anast@gmail.com>2015-09-26 16:09:36 +0300
committerAgis Anastasopoulos <agis.anast@gmail.com>2015-09-27 16:54:11 +0300
commite6e1ff5953e5713fbdd7c2664ed785b426bea827 (patch)
treec550268658546d5f4a604abe242f00587f990e04 /lib/bundler/gem_helper.rb
parent643a57c91a0d1e33ebc37bd8656f9e8d5a3749a6 (diff)
downloadbundler-e6e1ff5953e5713fbdd7c2664ed785b426bea827.tar.gz
Wrap filesystem operations with #filesystem_access
Diffstat (limited to 'lib/bundler/gem_helper.rb')
-rw-r--r--lib/bundler/gem_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb
index ba1323356a..88e61c5af2 100644
--- a/lib/bundler/gem_helper.rb
+++ b/lib/bundler/gem_helper.rb
@@ -74,7 +74,7 @@ module Bundler
file_name = nil
sh("gem build -V '#{spec_path}'") {
file_name = File.basename(built_gem_path)
- FileUtils.mkdir_p(File.join(base, "pkg"))
+ SharedHelpers.filesystem_access(File.join(base, "pkg")) {|p| FileUtils.mkdir_p(p) }
FileUtils.mv(built_gem_path, "pkg")
Bundler.ui.confirm "#{name} #{version} built to pkg/#{file_name}."
}