Class: UsePacks::Private::InteractiveCli::UseCases::RegenerateRubocopTodo
- Inherits:
-
Object
- Object
- UsePacks::Private::InteractiveCli::UseCases::RegenerateRubocopTodo
- Extended by:
- T::Helpers, T::Sig
- Includes:
- Interface
- Defined in:
- lib/use_packs/private/interactive_cli/use_cases/regenerate_rubocop_todo.rb
Instance Method Summary collapse
Methods included from Interface
Instance Method Details
#perform!(prompt) ⇒ Object
13 14 15 16 |
# File 'lib/use_packs/private/interactive_cli/use_cases/regenerate_rubocop_todo.rb', line 13 def perform!(prompt) packs = PackSelector.single_or_all_pack_multi_select(prompt, question_text: "Please select the packs you want to regenerate `#{RuboCop::Packs::PACK_LEVEL_RUBOCOP_TODO_YML}` for") RuboCop::Packs.regenerate_todo(packs: packs) end |
#user_facing_name ⇒ Object
19 20 21 |
# File 'lib/use_packs/private/interactive_cli/use_cases/regenerate_rubocop_todo.rb', line 19 def user_facing_name "Regenerate packs/*/#{RuboCop::Packs::PACK_LEVEL_RUBOCOP_TODO_YML} for one or more packs" end |