From 8c83e7a78385da8d15d274ee86f126a27f4763c7 Mon Sep 17 00:00:00 2001 From: Azul Date: Sun, 22 Dec 2013 15:58:21 +0100 Subject: Version 0.3.1 with new flags --run-once, --rerun and --overwrite-security --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. --- lib/tapicero/user_database.rb | 2 +- lib/tapicero/version.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/tapicero') diff --git a/lib/tapicero/user_database.rb b/lib/tapicero/user_database.rb index efd723a..50694b7 100644 --- a/lib/tapicero/user_database.rb +++ b/lib/tapicero/user_database.rb @@ -17,7 +17,7 @@ module Tapicero def secure(security) # let's not overwrite if we have a security doc already - return if secured? + return if secured? && !Tapicero::FLAGS.include?('--overwrite-security') Tapicero.logger.info "Writing Security to #{security_url}" Tapicero.logger.debug security.to_json CouchRest.put security_url, security diff --git a/lib/tapicero/version.rb b/lib/tapicero/version.rb index 2c4bc00..18ee238 100644 --- a/lib/tapicero/version.rb +++ b/lib/tapicero/version.rb @@ -1,4 +1,5 @@ module Tapicero - VERSION = "0.3.0" + VERSION = "0.3.1" REQUIRE_PATHS = ['lib'] + FLAGS = [] end -- cgit v1.2.3