From 0b5b9faea05493b68c6f571b74344a3ddaee1a0c Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 3 Sep 2012 12:41:13 +0200 Subject: it's not a test - it's the main program --- leap_ca.rb | 18 ++++++++++++++++++ test.rb | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 leap_ca.rb delete mode 100644 test.rb 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 diff --git a/test.rb b/test.rb deleted file mode 100644 index c19db2f..0000000 --- a/test.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/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 -- cgit v1.2.3