Exception: TapFormulaOrCaskUnavailableError
- Inherits:
-
FormulaOrCaskUnavailableError
- Object
- RuntimeError
- FormulaOrCaskUnavailableError
- TapFormulaOrCaskUnavailableError
- Defined in:
- exceptions.rb
Overview
Raised when a formula or cask in a specific tap is not available.
Instance Attribute Summary collapse
-
#tap ⇒ Object
readonly
Returns the value of attribute tap.
Attributes inherited from FormulaOrCaskUnavailableError
Instance Method Summary collapse
-
#initialize(tap, name) ⇒ TapFormulaOrCaskUnavailableError
constructor
A new instance of TapFormulaOrCaskUnavailableError.
-
#to_s ⇒ String
Methods inherited from FormulaOrCaskUnavailableError
Constructor Details
#initialize(tap, name) ⇒ TapFormulaOrCaskUnavailableError
Returns a new instance of TapFormulaOrCaskUnavailableError.
122 123 124 125 |
# File 'exceptions.rb', line 122 def initialize(tap, name) super "#{tap}/#{name}" @tap = tap end |
Instance Attribute Details
#tap ⇒ Object (readonly)
Returns the value of attribute tap.
120 121 122 |
# File 'exceptions.rb', line 120 def tap @tap end |
Instance Method Details
#to_s ⇒ String
128 129 130 131 132 |
# File 'exceptions.rb', line 128 def to_s s = super s += "\nPlease tap it and then try again: brew tap #{tap}" unless tap.installed? s end |