summaryrefslogtreecommitdiff
path: root/leap_ca.rb
diff options
context:
space:
mode:
Diffstat (limited to 'leap_ca.rb')
-rw-r--r--leap_ca.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/leap_ca.rb b/leap_ca.rb
index 26f3b03..f961a3c 100644
--- a/leap_ca.rb
+++ b/leap_ca.rb
@@ -2,15 +2,14 @@
require 'rubygems'
require 'yajl/http_stream'
-require 'lib/config'
+require 'lib/cert'
require 'lib/couch_stream'
require 'lib/couch_changes'
def main
- config = LeapCA::Config.new(File.expand_path("../config.yml", __FILE__))
- p "Tracking #{config.database} on #{config.server}"
- couch = CouchStream.new(config)
+ puts "Tracking #{Cert.database.root}"
+ couch = CouchStream.new(Cert.database.root)
changes = CouchChanges.new(couch)
changes.follow do |hash|
p hash