Exception: TapRemoteMismatchError Private
- Defined in:
- 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.
Raised when a tap's remote does not match the actual remote.
Direct Known Subclasses
Instance Attribute Summary collapse
- #actual_remote ⇒ Object readonly private
- #expected_remote ⇒ Object readonly private
- #name ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(name, expected_remote, actual_remote) ⇒ TapRemoteMismatchError
constructor
private
A new instance of TapRemoteMismatchError.
- #message ⇒ Object private
Constructor Details
#initialize(name, expected_remote, actual_remote) ⇒ TapRemoteMismatchError
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 TapRemoteMismatchError.
328 329 330 331 332 333 334 |
# File 'exceptions.rb', line 328 def initialize(name, expected_remote, actual_remote) @name = name @expected_remote = expected_remote @actual_remote = actual_remote super end |
Instance Attribute Details
#actual_remote ⇒ 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.
326 327 328 |
# File 'exceptions.rb', line 326 def actual_remote @actual_remote end |
#expected_remote ⇒ 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.
326 327 328 |
# File 'exceptions.rb', line 326 def expected_remote @expected_remote end |
#name ⇒ 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.
326 327 328 |
# File 'exceptions.rb', line 326 def name @name end |
Instance Method Details
#message ⇒ Object
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.
336 337 338 339 340 341 |
# File 'exceptions.rb', line 336 def <<~EOS Tap #{name} remote mismatch. #{expected_remote} != #{actual_remote} EOS end |