Class: Librr::CmdParser::Daemon

Inherits:
MyThor
  • Object
show all
Defined in:
lib/librr/cmd_parser.rb

Instance Method Summary collapse

Instance Method Details

#startObject



16
17
18
19
20
# File 'lib/librr/cmd_parser.rb', line 16

def start
  if Librr::CmdParser.client.check_start(options[:sync])
    puts 'daemon already started..'
  end
end

#stopObject



23
24
25
26
# File 'lib/librr/cmd_parser.rb', line 23

def stop
  puts 'stopping daemon..'
  Librr::CmdParser.client.cmd(:stop) rescue nil
end