Class: Moro::CLI
- Inherits:
-
Thor
- Object
- Thor
- Moro::CLI
- Defined in:
- lib/moro/cli.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
21 22 23 24 25 26 |
# File 'lib/moro/cli.rb', line 21 def show config=get_config([:config]) Moro.initialize_logger() monitor=Monitor.new(config) monitor.show end |
#start ⇒ Object
31 32 33 34 35 36 |
# File 'lib/moro/cli.rb', line 31 def start config=get_config([:config]) Moro.initialize_logger() daemon=Daemon.new(config) daemon.start end |
#version ⇒ Object
14 15 16 |
# File 'lib/moro/cli.rb', line 14 def version puts "#{File.basename($0)} #{VERSION}" end |