summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-03-31 15:23:01 +0800
committerAndre Arko <andre@arko.net>2014-03-31 15:23:01 +0800
commitbec906d1a0146d4922782f9bd8dd6902687b14ad (patch)
tree3dffaa48a571d3fff89331cd89513d5192e2ca9b
parent02cd4c1350f3b9538bc6dc8ee177bc70ca8d8b64 (diff)
downloadbundler-bec906d1a0146d4922782f9bd8dd6902687b14ad.tar.gz
er, one tmp per install run. yeah.
-rw-r--r--lib/bundler.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 31ca4eb3a6..7237fdaa9a 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -203,8 +203,9 @@ module Bundler
path.join("vendor/cache")
end
- def tmp
- Pathname.new(Dir.mktmpdir(Process.pid.to_s))
+ def tmp(name = Process.pid.to_s)
+ @tmp ||= Pathname.new Dir.mktmpdir("bundler")
+ @tmp.join(name)
end
def settings