Class: Indoctrinatr::Tools::Commands::Scaffold
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Indoctrinatr::Tools::Commands::Scaffold
- Defined in:
- lib/indoctrinatr/tools/commands/scaffold.rb
Instance Method Summary collapse
Instance Method Details
#call(template_pack_name: '') ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/indoctrinatr/tools/commands/scaffold.rb', line 9 def call(template_pack_name: '', **) template_pack_name = CommandAutocompleteHelpers.handle_autocomplete(template_pack_name) Indoctrinatr::Tools::Transactions::TemplatePackScaffold.new.call(template_pack_name) do |result| result.success do || puts end result.failure do || puts exit 1 end end end |