From 5dcf5cc28689ffc920b3aafe677810d006d491dc Mon Sep 17 00:00:00 2001 From: Piotr Krawiec Date: Fri, 11 Jul 2014 14:40:28 +0200 Subject: [PATCH] Make tmp path configurable via env variable --- lib/spring/env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spring/env.rb b/lib/spring/env.rb index 0cd8a2b7..cc4c859c 100644 --- a/lib/spring/env.rb +++ b/lib/spring/env.rb @@ -32,7 +32,7 @@ def version end def tmp_path - path = Pathname.new(Dir.tmpdir + "/spring") + path = Pathname.new(ENV["SPRING_TMP_PATH"] || Dir.tmpdir + "/spring") FileUtils.mkdir_p(path) unless path.exist? path end