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(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