Kouhei Sutou
null+****@clear*****
Fri Jun 22 12:43:18 JST 2018
Kouhei Sutou 2018-06-22 12:43:18 +0900 (Fri, 22 Jun 2018) New Revision: 7ec9d8953393bf5a153f182c7a821a1381d4f480 https://github.com/groonga/groonga/commit/7ec9d8953393bf5a153f182c7a821a1381d4f480 Message: grndb: fix output channel Modified files: lib/mrb/scripts/command_line/grndb.rb Modified: lib/mrb/scripts/command_line/grndb.rb (+6 -4) =================================================================== --- lib/mrb/scripts/command_line/grndb.rb 2018-06-22 11:56:02 +0900 (5836431fc) +++ lib/mrb/scripts/command_line/grndb.rb 2018-06-22 12:43:18 +0900 (356d6fe40) @@ -102,7 +102,7 @@ module Groonga end def recover(database, options, arguments) - recoverer = Recoverer.new + recoverer = Recoverer.new(@output) recoverer.database = database recoverer.force_truncate = options[:force_truncate] recoverer.force_lock_clear = options[:force_lock_clear] @@ -115,7 +115,7 @@ module Groonga end def check(database, options, arguments) - checker = Checker.new + checker = Checker.new(@output) checker.program_path = @program_path checker.database_path = @database_path checker.database = database @@ -143,7 +143,8 @@ module Groonga attr_writer :log_paths attr_writer :on_failure - def initialize + def initialize(output) + @output = output @context = Context.instance @checked = {} end @@ -452,7 +453,8 @@ module Groonga attr_writer :force_truncate attr_writer :force_lock_clear - def initialize + def initialize(output) + @output = output @context = Context.instance end -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180622/2508050d/attachment-0001.htm