Sha256: 52cb53e0ecb0665db1ee39d784df503ed33f1fd9f441c2b2d7a72f4da15945ec
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
require "pathname" require "spring/sid" class Spring class Env attr_reader :root def initialize @root = Pathname.new(File.expand_path('.')) end def tmp_path path = root.join('tmp/spring') path.mkdir unless path.exist? path end def socket_path tmp_path.join(SID.sid.to_s) end def socket_name socket_path.to_s end def pidfile_path tmp_path.join("#{SID.sid}.pid") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spring-0.0.2 | lib/spring/env.rb |
spring-0.0.1 | lib/spring/env.rb |