Class: Indoctrinatr::Tools::Commands::Pack
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Indoctrinatr::Tools::Commands::Pack
- Defined in:
- lib/indoctrinatr/tools/commands/pack.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/pack.rb', line 9 def call(template_pack_name:, **) template_pack_name = CommandAutocompleteHelpers.handle_autocomplete(template_pack_name) Indoctrinatr::Tools::Transactions::TemplatePackPacker.new.call(template_pack_name) do |result| result.success do || puts end result.failure do || puts exit 1 end end end |