We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba526bc commit e30eee6Copy full SHA for e30eee6
lib/spring/env.rb
@@ -14,14 +14,19 @@ class Env
14
attr_reader :log_file
15
16
def initialize(root = nil)
17
- @root = root
18
- @log_file = File.open(ENV["SPRING_LOG"] || "/dev/null", "a")
+ @root = root
+ @project_root = root
19
+ @log_file = File.open(ENV["SPRING_LOG"] || "/dev/null", "a")
20
end
21
22
def root
23
@root ||= Spring.application_root_path
24
25
26
+ def project_root
27
+ @project_root ||= Spring.project_root_path
28
+ end
29
+
30
def version
31
Spring::VERSION
32
@@ -33,7 +38,7 @@ def tmp_path
33
38
34
39
35
40
def application_id
36
- Digest::MD5.hexdigest(Spring.project_root_path.to_s)
41
+ Digest::MD5.hexdigest(project_root.to_s)
37
42
43
44
def socket_path
0 commit comments