Class: Indoctrinatr::Tools::Commands::Demo

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/indoctrinatr/tools/commands/demo.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/indoctrinatr/tools/commands/demo.rb', line 7

def call(**)
  Indoctrinatr::Tools::Transactions::TemplatePackDemo.new.call('demo') do |result|
    result.success do |message|
      puts message
    end

    result.failure do |message|
      puts message
      exit 1
    end
  end
end