Class: UsePackwerk::Private::InteractiveCli::UseCases::Rename
- Inherits:
-
Object
- Object
- UsePackwerk::Private::InteractiveCli::UseCases::Rename
- Extended by:
- T::Helpers, T::Sig
- Includes:
- Interface
- Defined in:
- lib/use_packwerk/private/interactive_cli/use_cases/rename.rb
Instance Method Summary collapse
Methods included from Interface
Instance Method Details
#perform!(prompt) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/use_packwerk/private/interactive_cli/use_cases/rename.rb', line 18 def perform!(prompt) prompt.warn(<<~WARNING) We do not yet have an automated API for this. Follow these steps: 1. Rename the `packs/your_pack` directory to the name of the new pack, `packs/new_pack_name 2. Replace references to `- packs/your_pack` in `package.yml` files with `- packs/new_pack_name` 3. Rerun `bin/packwerk update-deprecations` to update violations 4. Run `bin/codeownership validate` to update ownership information 5. Please let us know if anything is missing. WARNING end |
#user_facing_name ⇒ Object
13 14 15 |
# File 'lib/use_packwerk/private/interactive_cli/use_cases/rename.rb', line 13 def user_facing_name 'Rename a pack' end |