Exception: TapFormulaUnavailableError

Inherits:
FormulaUnavailableError show all
Defined in:
brew/Library/Homebrew/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from FormulaUnavailableError

#dependent, #name

Instance Method Summary collapse

Methods inherited from FormulaUnavailableError

#dependent_s

Constructor Details

#initialize(tap, name) ⇒ TapFormulaUnavailableError

Returns a new instance of TapFormulaUnavailableError



146
147
148
149
150
151
# File 'brew/Library/Homebrew/exceptions.rb', line 146

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

Instance Attribute Details

#repoObject (readonly)

Returns the value of attribute repo



144
145
146
# File 'brew/Library/Homebrew/exceptions.rb', line 144

def repo
  @repo
end

#tapObject (readonly)

Returns the value of attribute tap



144
145
146
# File 'brew/Library/Homebrew/exceptions.rb', line 144

def tap
  @tap
end

#userObject (readonly)

Returns the value of attribute user



144
145
146
# File 'brew/Library/Homebrew/exceptions.rb', line 144

def user
  @user
end

Instance Method Details

#to_sObject



153
154
155
156
157
# File 'brew/Library/Homebrew/exceptions.rb', line 153

def to_s
  s = super
  s += "\nPlease tap it and then try again: brew tap #{tap}" unless tap.installed?
  s
end