summaryrefslogtreecommitdiff
path: root/lib/tapicero_daemon.rb
blob: b46158a075e97bd51e8f34a0395c9cb572700940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# 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 'extends/couchrest'

module Tapicero
  module Daemon
    require 'tapicero/user_event_handler'
    users = CouchRest::Changes.new('users')
    UserEventHandler.new(users)
    users.listen

  end
end