Haruka Yoshihara
null+****@clear*****
Fri Dec 21 12:13:00 JST 2012
Haruka Yoshihara 2012-12-21 12:13:00 +0900 (Fri, 21 Dec 2012) New Revision: 610f76769111262412a6170bf91368b12b465f3f https://github.com/groonga/groonga-query-log/commit/610f76769111262412a6170bf91368b12b465f3f Log: Add the document about Groonga::QueryLog::Executor#run Modified files: lib/groonga/query-log/extractor.rb Modified: lib/groonga/query-log/extractor.rb (+15 -0) =================================================================== --- lib/groonga/query-log/extractor.rb 2012-12-21 12:06:34 +0900 (7874a13) +++ lib/groonga/query-log/extractor.rb 2012-12-21 12:13:00 +0900 (ef270d0) @@ -43,6 +43,21 @@ module Groonga setup_options end + # Executes extractor for groonga's query logs. + # "groonga-query-log-extract" command runs this method. + # + # @example + # extractor = Groonga::QueryLog::Extractor.new + # extractor.run("--output", "commands.output", + # "--command", "select", + # "query.log") + # + # If only paths of query log files are specified, + # this method prints command(s) of them to console with coloring. + # + # @param [Array<String>] arguments arguments for + # groonga-query-log-extract. Please execute + # "groonga-query-log-extract --help" or see #setup_options. def run(*arguments) begin log_paths = @option_parser.parse!(arguments) -------------- next part -------------- HTML����������������������������...Download