summaryrefslogtreecommitdiff
path: root/leap_ca.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-09-03 12:41:13 +0200
committerAzul <azul@leap.se>2012-09-03 12:41:13 +0200
commit0b5b9faea05493b68c6f571b74344a3ddaee1a0c (patch)
treeaab140467e5c09002c8b42760515db5d1bf026e1 /leap_ca.rb
parentc52eed9d8c4bdcc767bd7eec7c0b073250ae948f (diff)
it's not a test - it's the main program
Diffstat (limited to 'leap_ca.rb')
-rw-r--r--leap_ca.rb18
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