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 ⇒ Pathname, String readonly private
- #expected_remote ⇒ String? readonly private
- #name ⇒ String readonly private
Instance Method Summary collapse
- #initialize(name, expected_remote, actual_remote) ⇒ void constructor private
- #message ⇒ String private
Constructor Details
#initialize(name, expected_remote, actual_remote) ⇒ void
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.
429 430 431 432 433 434 435 |
# File 'exceptions.rb', line 429 def initialize(name, expected_remote, actual_remote) @name = name @expected_remote = expected_remote @actual_remote = actual_remote super end |
Instance Attribute Details
#actual_remote ⇒ Pathname, String (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.
426 427 428 |
# File 'exceptions.rb', line 426 def actual_remote @actual_remote end |
#expected_remote ⇒ String? (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.
423 424 425 |
# File 'exceptions.rb', line 423 def expected_remote @expected_remote end |
#name ⇒ String (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.
420 421 422 |
# File 'exceptions.rb', line 420 def name @name end |
Instance Method Details
#message ⇒ 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.
438 439 440 441 442 443 |
# File 'exceptions.rb', line 438 def <<~EOS Tap #{name} remote mismatch. #{expected_remote} != #{actual_remote} EOS end |