Exception: Spring::MissingApplication
- Inherits:
-
ClientError
- Object
- StandardError
- ClientError
- Spring::MissingApplication
- Defined in:
- lib/spring/errors.rb
Instance Attribute Summary collapse
-
#project_root ⇒ Object
readonly
Returns the value of attribute project_root.
Instance Method Summary collapse
-
#initialize(project_root) ⇒ MissingApplication
constructor
A new instance of MissingApplication.
- #message ⇒ Object
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_root ⇒ Object (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
#message ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/spring/errors.rb', line 25 def "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 |