YUKI Hiroshi
null+****@clear*****
Thu Sep 18 13:30:37 JST 2014
YUKI Hiroshi 2014-09-18 13:30:37 +0900 (Thu, 18 Sep 2014) New Revision: f6155fe02a39997b5ecb1179e28629e5bd5e3064 https://github.com/droonga/droonga-engine/commit/f6155fe02a39997b5ecb1179e28629e5bd5e3064 Message: Clear local data before reconfiguration Modified files: bin/droonga-engine-configure Modified: bin/droonga-engine-configure (+4 -1) =================================================================== --- bin/droonga-engine-configure 2014-09-18 13:28:20 +0900 (0363124) +++ bin/droonga-engine-configure 2014-09-18 13:30:37 +0900 (c6851ef) @@ -16,7 +16,9 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA require "optparse" +require "fileutils" +require "droonga/path" require "droonga/command/droonga_engine" options = { @@ -116,7 +118,8 @@ if running end if options[:clear] - # clear data directories and "status"... + FileUtils.rm_rf(Droonga::Path.databases) + FileUtils.rm_rf(Droonga::Path.state) end if options[:reset] -------------- next part -------------- HTML����������������������������...Download