Class: Librr::CmdParser::Daemon
- Defined in:
- lib/librr/cmd_parser.rb
Instance Method Summary collapse
Instance Method Details
#start ⇒ Object
16 17 18 19 20 |
# File 'lib/librr/cmd_parser.rb', line 16 def start if Librr::CmdParser.client.check_start([:sync]) puts 'daemon already started..' end end |
#stop ⇒ Object
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 |