Method: Spring.application_root_path

Defined in:
lib/spring/configuration.rb

.application_root_pathObject



23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/spring/configuration.rb', line 23

def application_root_path
  @application_root_path ||= begin
    if application_root
      path = Pathname.new(File.expand_path(application_root))
    else
      path = project_root_path
    end

    raise MissingApplication.new(path) unless path.join("config/application.rb").exist?
    path
  end
end