Exception: TapFormulaUnavailableError Private

Inherits:
FormulaUnavailableError 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 formula in a specific tap is unavailable.

Instance Attribute Summary collapse

Attributes inherited from FormulaUnavailableError

#dependent

Attributes inherited from FormulaOrCaskUnavailableError

#name

Instance Method Summary collapse

Methods inherited from FormulaUnavailableError

#dependent_s

Methods inherited from FormulaOrCaskUnavailableError

#did_you_mean

Constructor Details

#initialize(tap, name) ⇒ TapFormulaUnavailableError

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



223
224
225
226
227
228
# File 'exceptions.rb', line 223

def initialize(tap, name)
  @tap = tap
  @user = tap.user
  @repository = tap.repository
  super "#{tap}/#{name}"
end

Instance Attribute Details

#repositoryObject (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.



221
222
223
# File 'exceptions.rb', line 221

def repository
  @repository
end

#tapObject (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.



221
222
223
# File 'exceptions.rb', line 221

def tap
  @tap
end

#userObject (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.



221
222
223
# File 'exceptions.rb', line 221

def user
  @user
end