summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-09-10 11:02:23 +0200
committerAzul <azul@leap.se>2012-09-10 11:02:23 +0200
commita52f357906ed5f54b7a3b64e54be79db83c58e7c (patch)
tree7f1f9a4a6487417f9bf9d770b1b120a50980213a
parent5d7abc3f144bc569c89f1af7627f2f88df6009e0 (diff)
minor set constants for SERVER and DATABASE
-rw-r--r--leap_ca.rb6
1 files 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