Class: Matchd::CLI::Main

Inherits:
Thor
  • Object
show all
Includes:
ConfigFileOption
Defined in:
lib/matchd/cli/main.rb

Instance Method Summary collapse

Methods included from ConfigFileOption

included

Instance Method Details

#restartObject



37
38
39
40
# File 'lib/matchd/cli/main.rb', line 37

def restart
  invoke :stop
  invoke :start
end

#startObject



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

def start
  Matchd::Control.new.start(ontop: !options[:deamonize])
end

#statusObject



24
25
26
# File 'lib/matchd/cli/main.rb', line 24

def status
  Matchd::Control.new.status
end

#stopObject



19
20
21
# File 'lib/matchd/cli/main.rb', line 19

def stop
  Matchd::Control.new.stop
end