summaryrefslogtreecommitdiff
path: root/leap_ca.rb
blob: a2a1d370153e4d7c21339e632cd3ee4702c98dc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/ruby

require 'rubygems'
require 'yajl/http_stream'
require 'lib/couch_stream'
require 'lib/couch_changes'

# TODO: read the connection from a config
SERVER = "http://localhost:5984"
DATABASE = "salticidae_certs" 

def main
  couch = CouchStream.new(SERVER, DATABASE)
  changes = CouchChanges.new(couch)
  changes.follow do |hash|
    p hash
  end
end

main