Exception: TapFormulaUnavailableError

Inherits:
FormulaUnavailableError show all
Defined in:
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



141
142
143
144
145
146
# File 'Library/Homebrew/exceptions.rb', line 141

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



139
140
141
# File 'Library/Homebrew/exceptions.rb', line 139

def repo
  @repo
end

#tapObject (readonly)

Returns the value of attribute tap



139
140
141
# File 'Library/Homebrew/exceptions.rb', line 139

def tap
  @tap
end

#userObject (readonly)

Returns the value of attribute user



139
140
141
# File 'Library/Homebrew/exceptions.rb', line 139

def user
  @user
end

Instance Method Details

#to_sObject



148
149
150
151
152
# File 'Library/Homebrew/exceptions.rb', line 148

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