Exception: Omnibus::MissingPatch
- Defined in:
- lib/omnibus/exceptions.rb
Instance Method Summary collapse
-
#initialize(name, search_paths) ⇒ MissingPatch
constructor
A new instance of MissingPatch.
- #to_s ⇒ Object
Constructor Details
#initialize(name, search_paths) ⇒ MissingPatch
Returns a new instance of 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_s ⇒ Object
73 74 75 76 77 78 79 80 |
# File 'lib/omnibus/exceptions.rb', line 73 def to_s <<~EOH Attempting to apply the patch `#{@name}', but it was not found at any of the following locations: #{@search_paths.map { |path| " #{path}" }.join("\n")} EOH end |