Exception: Sashimi::ClientNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sashimi/repositories/abstract_repository.rb

Overview

:nodoc:

Direct Known Subclasses

GitNotFound, SvnNotFound

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ ClientNotFound

Returns a new instance of ClientNotFound.



13
14
15
# File 'lib/sashimi/repositories/abstract_repository.rb', line 13

def initialize(message = nil)
  @message = message
end

Instance Method Details

#clientObject



17
18
19
# File 'lib/sashimi/repositories/abstract_repository.rb', line 17

def client
  self.class.name.demodulize.gsub(/NotFound/, '')
end

#to_sObject



21
22
23
# File 'lib/sashimi/repositories/abstract_repository.rb', line 21

def to_s
  @message || "#{client} wasn't installed or it isn't in your load path."
end