diff options
author | Azul <azul@leap.se> | 2012-09-03 12:41:13 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-09-03 12:41:13 +0200 |
commit | 0b5b9faea05493b68c6f571b74344a3ddaee1a0c (patch) | |
tree | aab140467e5c09002c8b42760515db5d1bf026e1 /leap_ca.rb | |
parent | c52eed9d8c4bdcc767bd7eec7c0b073250ae948f (diff) |
it's not a test - it's the main program
Diffstat (limited to 'leap_ca.rb')
-rw-r--r-- | leap_ca.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/leap_ca.rb b/leap_ca.rb new file mode 100644 index 0000000..c19db2f --- /dev/null +++ b/leap_ca.rb @@ -0,0 +1,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 |