Exception: Spring::MissingApplication

Inherits:
ClientError
  • Object
show all
Defined in:
lib/spring/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_root) ⇒ MissingApplication

Returns a new instance of MissingApplication.



21
22
23
# File 'lib/spring/errors.rb', line 21

def initialize(project_root)
  @project_root = project_root
end

Instance Attribute Details

#project_rootObject (readonly)

Returns the value of attribute project_root.



19
20
21
# File 'lib/spring/errors.rb', line 19

def project_root
  @project_root
end

Instance Method Details

#messageObject



25
26
27
28
29
30
31
# File 'lib/spring/errors.rb', line 25

def message
  "Spring was unable to find your config/application.rb file. " \
    "Your project root was detected at #{project_root}, so Spring " \
    "looked for #{project_root}/config/application.rb but it doesn't exist. You can " \
    "configure the root of your application by setting Spring.application_root in " \
    "config/spring.rb."
end