Exception: Omnibus::MissingPatch

Inherits:
Error
  • Object
show all
Defined in:
lib/omnibus/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, search_paths) ⇒ MissingPatch


69
70
71
# File 'lib/omnibus/exceptions.rb', line 69

def initialize(name, search_paths)
  @name, @search_paths = name, search_paths
end

Instance Method Details

#to_sObject


73
74
75
76
77
78
79
80
# File 'lib/omnibus/exceptions.rb', line 73

def to_s
  "Attempting to apply the patch `\#{@name}', but it was not found at any of the\nfollowing locations:\n\n\#{@search_paths.map { |path| \"    \#{path}\" }.join(\"\\n\")}\n"
end