Exception: Migrator::MigrationNeededError Private
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Migrator::MigrationNeededError
- Defined in:
- Library/Homebrew/migrator.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Error for when a migration is necessary.
Instance Method Summary collapse
-
#initialize(formula) ⇒ MigrationNeededError
constructor
private
A new instance of MigrationNeededError.
Constructor Details
#initialize(formula) ⇒ MigrationNeededError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MigrationNeededError.
16 17 18 19 20 21 |
# File 'Library/Homebrew/migrator.rb', line 16 def initialize(formula) super <<~EOS #{formula.oldname} was renamed to #{formula.name} and needs to be migrated. Please run `brew migrate #{formula.oldname}` EOS end |