Exception: Migrator::MigrationNeededError Private
- 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) ⇒ MigrationNeededError
constructor
private
A new instance of MigrationNeededError.
Constructor Details
#initialize(oldname, newname) ⇒ MigrationNeededError
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 MigrationNeededError.
14 15 16 17 18 19 |
# File 'migrator.rb', line 14 def initialize(oldname, newname) super <<~EOS #{oldname} was renamed to #{newname} and needs to be migrated by running: brew migrate #{oldname} EOS end |