Method: Spring::Env#tmp_path
- Defined in:
- lib/spring/env.rb
#tmp_path ⇒ Object
35 36 37 38 39 |
# File 'lib/spring/env.rb', line 35 def tmp_path path = Pathname.new(File.join(ENV['XDG_RUNTIME_DIR'] || Dir.tmpdir, "spring")) FileUtils.mkdir_p(path) unless path.exist? path end |