diff options
author | Andre Arko <andre@arko.net> | 2014-03-31 15:23:01 +0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-03-31 15:23:01 +0800 |
commit | bec906d1a0146d4922782f9bd8dd6902687b14ad (patch) | |
tree | 3dffaa48a571d3fff89331cd89513d5192e2ca9b /lib/bundler.rb | |
parent | 02cd4c1350f3b9538bc6dc8ee177bc70ca8d8b64 (diff) | |
download | bundler-bec906d1a0146d4922782f9bd8dd6902687b14ad.tar.gz |
er, one tmp per install run. yeah.
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 31ca4eb3..7237fdaa 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 |