diff options
-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 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 |