Class: HistoryCommanderDaemon
- Inherits:
-
SimpleDaemon::Base
- Object
- SimpleDaemon::Base
- HistoryCommanderDaemon
- Defined in:
- bin/hc
Class Method Summary collapse
Class Method Details
.start ⇒ Object
70 71 72 73 74 75 76 |
# File 'bin/hc', line 70 def self.start EM.run do AMQP.start(:host => @@options[:amqp_host], :user => @@options[:user], :pass => @@options[:pass], :vhost => @@options[:vhost], :logging => @@options[:amqp_log]) do HistWatch.start(@@options[:mode]) end end end |
.stop ⇒ Object
78 79 80 81 |
# File 'bin/hc', line 78 def self.stop EM.stop puts "Stopping History Commander" end |