blob: 57bf0678ffd54b5770ca8f404970cb5907817263 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/ruby
require 'rubygems'
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
main
|