summaryrefslogtreecommitdiff
path: root/leap_ca.rb
diff options
context:
space:
mode:
Diffstat (limited to 'leap_ca.rb')
-rw-r--r--leap_ca.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/leap_ca.rb b/leap_ca.rb
index f961a3c..57bf067 100644
--- a/leap_ca.rb
+++ b/leap_ca.rb
@@ -5,14 +5,20 @@ require 'yajl/http_stream'
require 'lib/cert'
require 'lib/couch_stream'
require 'lib/couch_changes'
+require 'lib/pool'
def main
puts "Tracking #{Cert.database.root}"
couch = CouchStream.new(Cert.database.root)
changes = CouchChanges.new(couch)
+ pool = LeapCA::Pool.new(File.expand_path("../config/pool.yml", __FILE__))
+ pool.fill
changes.follow do |hash|
p hash
+ if hash[:deleted]
+ pool.fill
+ end
end
end