Spec-Zone.ru › Homebrew

Exception: TapCoreRemoteMismatchError Private

Inherits:
TapRemoteMismatchError
  • Object
  • RuntimeError
  • TapRemoteMismatchError
  • TapCoreRemoteMismatchError
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 the remote of homebrew/core does not match HOMEBREW_CORE_GIT_REMOTE.

Instance Attribute Summary

Attributes inherited from TapRemoteMismatchError

#actual_remote, #expected_remote, #name

Instance Method Summary collapse

  • #message ⇒ String private

Methods inherited from TapRemoteMismatchError

#initialize

Constructor Details

This class inherits a constructor from TapRemoteMismatchError

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)


449
450
451
452
453
454
455
# File 'exceptions.rb', line 449

def message
  <<~EOS
    Tap #{name} remote does not match `$HOMEBREW_CORE_GIT_REMOTE`.
#{expected_remote} != #{actual_remote}    Please set `HOMEBREW_CORE_GIT_REMOTE="#{actual_remote}"` and run `brew update` instead.
  EOS
end

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

Spec-Zone.ru

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