Exception: Stove::MetadataNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/stove/error.rb

Instance Method Summary collapse

Methods inherited from Error

set_exit_code

Constructor Details

#initialize(filepath) ⇒ MetadataNotFound

Returns a new instance of MetadataNotFound.



24
25
26
# File 'lib/stove/error.rb', line 24

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

Instance Method Details

#messageObject



28
29
30
# File 'lib/stove/error.rb', line 28

def message
  "No metadata.rb found at: '#{@filepath}'"
end