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.
314 315 316 317 318 319 320 |
# File 'exceptions.rb', line 314 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.
312 313 314 |
# File 'exceptions.rb', line 312 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.
312 313 314 |
# File 'exceptions.rb', line 312 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.
312 313 314 |
# File 'exceptions.rb', line 312 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.
322 323 324 325 326 327 |
# File 'exceptions.rb', line 322 def <<~EOS Tap #{name} remote mismatch. #{expected_remote} != #{actual_remote} EOS end |