diff options
author | Azul <azul@riseup.net> | 2013-12-22 15:58:21 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-12-22 15:58:21 +0100 |
commit | 8c83e7a78385da8d15d274ee86f126a27f4763c7 (patch) | |
tree | c0a2e322b8f1bff68ba439e80e770f5fd3a2a15e /bin/tapicero | |
parent | 12dbeefe693e5432416ec8019368e591c526736b (diff) |
Version 0.3.1 with new flags --run-once, --rerun and --overwrite-security0.3.1
--run-once will exit once all current changes have been processed
--rerun will process all users again even those that were processed before
--overwrite-security will overwrite security for user databases even
if it has been set before.
Diffstat (limited to 'bin/tapicero')
-rwxr-xr-x | bin/tapicero | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/bin/tapicero b/bin/tapicero index b8b88f1..ddd71c6 100755 --- a/bin/tapicero +++ b/bin/tapicero @@ -41,11 +41,18 @@ if ARGV.grep(/--version/).any? exit(0) end -# --run-once will create databases for new users and then exit -if ARGV.grep(/--once/).any? or ARGV.grep(/--run-once/).any? - require 'tapicero' - # TODO: implement me. - exit(0) +# --run-once create databases for new users and then exit +# --rerun also act upon users that have already been processed +# --overwrite-security overwrite existing couch security settings +# TODO: not implemented yet: +# --overwrite-designs overwrite existing design documents +Tapicero::FLAGS.concat ARGV.grep(/--.*/) + +# if flags have been set but an action is missing we assume +# tapicero should run in foreground. +if ARGV.first.start_with?('--') + ARGV.unshift '--' + ARGV.unshift 'run' end # |