Class: UsePackwerk::Private::InteractiveCli::UseCases::Rename

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

all, included

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("    We do not yet have an automated API for this.\n\n    Follow these steps:\n    1. Rename the `packs/your_pack` directory to the name of the new pack, `packs/new_pack_name\n    2. Replace references to `- packs/your_pack` in `package.yml` files with `- packs/new_pack_name`\n    3. Rerun `bin/packwerk update-deprecations` to update violations\n    4. Run `bin/codeownership validate` to update ownership information\n    5. Please let us know if anything is missing.\n  WARNING\nend\n")

#user_facing_nameObject



13
14
15
# File 'lib/use_packwerk/private/interactive_cli/use_cases/rename.rb', line 13

def user_facing_name
  'Rename a pack'
end