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

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


def main
# TODO: read the connection from a config
  couch = CouchStream.new("http://localhost:5984/", "salticidae_certs")
  changes = CouchChanges.new(couch)
  changes.follow do |hash|
    p hash
  end
end

main