Class: UsePackwerk::Private::InteractiveCli::UseCases::Create
- Inherits:
-
Object
- Object
- UsePackwerk::Private::InteractiveCli::UseCases::Create
- Extended by:
- T::Helpers, T::Sig
- Includes:
- Interface
- Defined in:
- lib/use_packwerk/private/interactive_cli/use_cases/create.rb
Instance Method Summary collapse
Methods included from Interface
Instance Method Details
#perform!(prompt) ⇒ Object
13 14 15 16 17 |
# File 'lib/use_packwerk/private/interactive_cli/use_cases/create.rb', line 13 def perform!(prompt) pack_name = prompt.ask('What should the name of your pack be?', value: 'packs/') team = TeamSelector.single_select(prompt) UsePackwerk.create_pack!(pack_name: pack_name, team: team) end |
#user_facing_name ⇒ Object
20 21 22 |
# File 'lib/use_packwerk/private/interactive_cli/use_cases/create.rb', line 20 def user_facing_name 'Create a new pack' end |