Spec-Zone.ru › Homebrew

Exception: TapRemoteMismatchError Private

Inherits:
RuntimeError
  • Object
  • RuntimeError
  • TapRemoteMismatchError
show all
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

TapCoreRemoteMismatchError

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.

Parameters:

  • name (String)
  • expected_remote (String, nil)
  • actual_remote (Pathname, String)


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 message
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.

Returns:

  • (Pathname, String)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


438
439
440
441
442
443
# File 'exceptions.rb', line 438

def message
  <<~EOS
    Tap #{name} remote mismatch.
#{expected_remote} != #{actual_remote}  EOS
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/TapRemoteMismatchError.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API