blob: 26f8e00cc5a0e2953255ebd92360caa8cb60b767 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#
# This file should not be required directly. Use the wrapper in /bin
# instead or run this using daemons:
#
# Daemons.run('tapicero_daemon.rb')
#
require 'tapicero'
require 'tapicero/loop'
require 'extends/couchrest'
require 'tapicero/user_event_handler'
module Tapicero
module Daemon
users_thread = Thread.new do
Tapicero::Loop.new.listen('users')
end
tmp_users_thread = Thread.new do
Tapicero::Loop.new.listen('tmp_users')
end
users_thread.join
tmp_users_thread.join
end
end
|