Exception: Cask::TapCaskAmbiguityError Private

Inherits:
CaskError
  • Object
show all
Defined in:
cask/exceptions.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Error when a cask with the same name is found in multiple taps.

Instance Method Summary collapse

Constructor Details

#initialize(ref, loaders) ⇒ TapCaskAmbiguityError

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns a new instance of TapCaskAmbiguityError.



133
134
135
136
137
138
# File 'cask/exceptions.rb', line 133

def initialize(ref, loaders)
  super <<~EOS
    Cask #{ref} exists in multiple taps:
    #{loaders.map { |loader| "  #{loader.tap}/#{loader.token}" }.join("\n")}
  EOS
end