diff options
author | Azul <azul@riseup.net> | 2012-12-19 17:03:56 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-12-19 17:03:56 +0100 |
commit | 922a3b677eaff65fbd37d03b228656d165bd01cf (patch) | |
tree | 94c3676e170ad0c4a366e3e7c9263fb651e3ee77 | |
parent | dc0df4e0ebe2c71298e1f4db0471bc922f33b711 (diff) |
added --fill-pool option
-rwxr-xr-x | bin/leap_ca | 8 |
1 files changed, 8 insertions, 0 deletions
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 # |