From a52f357906ed5f54b7a3b64e54be79db83c58e7c Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 10 Sep 2012 11:02:23 +0200 Subject: minor set constants for SERVER and DATABASE --- leap_ca.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/leap_ca.rb b/leap_ca.rb index c19db2f..a2a1d37 100644 --- a/leap_ca.rb +++ b/leap_ca.rb @@ -5,10 +5,12 @@ 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 -# TODO: read the connection from a config - couch = CouchStream.new("http://localhost:5984/", "salticidae_certs") + couch = CouchStream.new(SERVER, DATABASE) changes = CouchChanges.new(couch) changes.follow do |hash| p hash -- cgit v1.2.3