Spec-Zone.ru › Homebrew

Exception: Migrator::MigrationNeededError Private

Inherits:
RuntimeError
  • Object
  • RuntimeError
  • Migrator::MigrationNeededError
show all
Defined in:
migrator.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.

Error for when a migration is necessary.

Instance Method Summary collapse

  • #initialize(oldname, newname) ⇒ void constructor private

Constructor Details

#initialize(oldname, newname) ⇒ void

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.

Parameters:

  • oldname (String)
  • newname (String)


19
20
21
22
23
24
# File 'migrator.rb', line 19

def initialize(oldname, newname)
  super <<~EOS
#{oldname} was renamed to #{newname} and needs to be migrated by running:
      brew migrate #{oldname}  EOS
end

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

Spec-Zone.ru

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