Exception: Fox::FoxfileNotFound

Inherits:
FoxError
  • Object
show all
Defined in:
lib/fox/error/errors.rb

Instance Method Summary collapse

Methods inherited from FoxError

status_code

Constructor Details

#initialize(filepath) ⇒ FoxfileNotFound

Returns a new instance of FoxfileNotFound.

Parameters:

  • filepath (#to_s)

    the path where a Foxfile was not found



32
33
34
# File 'lib/fox/error/errors.rb', line 32

def initialize(filepath)
  @filepath = File.dirname(File.expand_path(filepath)) rescue filepath
end

Instance Method Details

#to_sObject



36
37
38
# File 'lib/fox/error/errors.rb', line 36

def to_s
  "No Foxfile or Foxfile.lock found at '#{@filepath}'!"
end