Exception: Cask::TapCaskUnavailableError Private
- Inherits:
-
CaskUnavailableError
- Object
- RuntimeError
- CaskError
- AbstractCaskErrorWithToken
- CaskUnavailableError
- Cask::TapCaskUnavailableError
- 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 in a specific tap is not available.
Instance Attribute Summary collapse
-
#tap ⇒ Object
readonly
private
Attributes inherited from AbstractCaskErrorWithToken
Instance Method Summary collapse
-
#initialize(tap, token) ⇒ TapCaskUnavailableError
constructor
private
A new instance of TapCaskUnavailableError.
-
#to_s ⇒ String
private
Constructor Details
#initialize(tap, token) ⇒ TapCaskUnavailableError
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 TapCaskUnavailableError.
100 101 102 103 |
# File 'cask/exceptions.rb', line 100 def initialize(tap, token) super("#{tap}/#{token}") @tap = tap end |
Instance Attribute Details
#tap ⇒ Object (readonly)
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.
98 99 100 |
# File 'cask/exceptions.rb', line 98 def tap @tap end |
Instance Method Details
#to_s ⇒ String
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.
106 107 108 109 110 |
# File 'cask/exceptions.rb', line 106 def to_s s = super s += "\nPlease tap it and then try again: brew tap #{tap}" unless tap.installed? s end |