Exception: Migrator::MigrationNeededError Private

Inherits:
RuntimeError
  • Object
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

Constructor Details

#initialize(formula) ⇒ 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.



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

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