From 922a3b677eaff65fbd37d03b228656d165bd01cf Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 19 Dec 2012 17:03:56 +0100 Subject: added --fill-pool option --- bin/leap_ca | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin') diff --git a/bin/leap_ca b/bin/leap_ca index 0234c15..13c0691 100755 --- a/bin/leap_ca +++ b/bin/leap_ca @@ -39,6 +39,14 @@ if ARGV.grep(/--version/).any? exit(0) end +# --fill-pool will fill the pool and then exit +if ARGV.grep(/--fill-pool/).any? + require 'leap_ca' + pool = LeapCA::Pool.new(:size => LeapCA::Config.max_pool_size) + pool.fill + exit(0) +end + # # Start the daemon # -- cgit v1.2.3