Exception: TapRemoteMismatchError

Inherits:
RuntimeError
  • Object
show all
Defined in:
brew/Library/Homebrew/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, expected_remote, actual_remote) ⇒ TapRemoteMismatchError

Returns a new instance of TapRemoteMismatchError



237
238
239
240
241
242
243
244
245
246
# File 'brew/Library/Homebrew/exceptions.rb', line 237

def initialize(name, expected_remote, actual_remote)
  @name = name
  @expected_remote = expected_remote
  @actual_remote = actual_remote

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

Instance Attribute Details

#actual_remoteObject (readonly)

Returns the value of attribute actual_remote



235
236
237
# File 'brew/Library/Homebrew/exceptions.rb', line 235

def actual_remote
  @actual_remote
end

#expected_remoteObject (readonly)

Returns the value of attribute expected_remote



234
235
236
# File 'brew/Library/Homebrew/exceptions.rb', line 234

def expected_remote
  @expected_remote
end

#nameObject (readonly)

Returns the value of attribute name



233
234
235
# File 'brew/Library/Homebrew/exceptions.rb', line 233

def name
  @name
end