Class: Moro::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/moro/cli.rb

Instance Method Summary collapse

Instance Method Details

#showObject



21
22
23
24
25
26
# File 'lib/moro/cli.rb', line 21

def show
  config=get_config(options[:config])
  Moro.initialize_logger(options)
  monitor=Monitor.new(config)
  monitor.show
end

#startObject



31
32
33
34
35
36
# File 'lib/moro/cli.rb', line 31

def start
  config=get_config(options[:config])
  Moro.initialize_logger(options)
  daemon=Daemon.new(config)
  daemon.start
end

#versionObject



14
15
16
# File 'lib/moro/cli.rb', line 14

def version
  puts "#{File.basename($0)} #{VERSION}"
end