Exception: Spring::UnknownProject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(current_dir) ⇒ UnknownProject

Returns a new instance of UnknownProject.



7
8
9
# File 'lib/spring/errors.rb', line 7

def initialize(current_dir)
  @current_dir = current_dir
end

Instance Attribute Details

#current_dirObject (readonly)

Returns the value of attribute current_dir.



5
6
7
# File 'lib/spring/errors.rb', line 5

def current_dir
  @current_dir
end

Instance Method Details

#messageObject



11
12
13
14
15
# File 'lib/spring/errors.rb', line 11

def message
  "Spring was unable to locate the root of your project. There was no Gemfile " \
    "present in the current directory (#{current_dir}) or any of the parent " \
    "directories."
end