null+****@clear*****
null+****@clear*****
2012年 6月 6日 (水) 18:43:31 JST
Haruka Yoshihara 2012-06-06 18:43:31 +0900 (Wed, 06 Jun 2012) New Revision: 111f9b1a3222ffaf3adba1e3967bf9b8ef00cfac Log: Add execute_script in each executers Modified files: lib/groonga/tester.rb Modified: lib/groonga/tester.rb (+11 -2) =================================================================== --- lib/groonga/tester.rb 2012-06-06 17:39:48 +0900 (c9e1ad2) +++ lib/groonga/tester.rb 2012-06-06 18:43:31 +0900 (f8ed0e5) @@ -576,8 +576,7 @@ module Groonga end end - def execute_script(path) - executer = self.class.new(@input, @output, @context) + def execute_script(path, executer) script_path = Pathname(path) if script_path.relative? script_path = Pathname(@context.base_directory) + script_path @@ -662,6 +661,11 @@ module Groonga @output.gets end + def execute_script(path) + executer = self.class.new(@input, @output, @context) + super(path, executer) + end + private def read_output output = "" @@ -702,6 +706,11 @@ module Groonga raise end end + + def execute_script(path) + executer = self.class.new(@host, @port, @context) + super(path, executer) + end end class CommandFormatConverter