Class: Sbmt::Outbox::CLI
- Inherits:
-
Thor
- Object
- Thor
- Sbmt::Outbox::CLI
- Defined in:
- lib/sbmt/outbox/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
9 10 11 |
# File 'lib/sbmt/outbox/cli.rb', line 9 def self.exit_on_failure? true end |
Instance Method Details
#start ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/sbmt/outbox/cli.rb', line 25 def start load_environment worker = Sbmt::Outbox::Worker.new( boxes: format_boxes([:box]), concurrency: [:concurrency] ) Sbmt::Outbox.current_worker = worker watch_signals(worker) $stdout.puts AsciiArt.logo $stdout.puts "Outbox/Inbox worker has been started" $stdout.puts "Version: #{VERSION}" $stdout.puts "Starting probes..." Sbmt::Outbox::Probes::Probe.run_probes worker.start end |