Kosuke Asami
null+****@clear*****
Thu Jul 18 10:15:01 JST 2013
Kosuke Asami 2013-07-18 10:15:01 +0900 (Thu, 18 Jul 2013) New Revision: 58a92a8ff47649fa9a0c69cf0fbca88466554cb8 https://github.com/groonga/fluent-plugin-droonga/commit/58a92a8ff47649fa9a0c69cf0fbca88466554cb8 Message: add: extract a method of main process Modified files: lib/droonga/plugin/handler_add.rb Modified: lib/droonga/plugin/handler_add.rb (+5 -1) =================================================================== --- lib/droonga/plugin/handler_add.rb 2013-07-18 10:08:36 +0900 (b500cc9) +++ lib/droonga/plugin/handler_add.rb 2013-07-18 10:15:01 +0900 (83271cf) @@ -25,10 +25,14 @@ module Droonga command :add def add(request) + outputs = process_add(request) + post(outputs) + end + + def process_add(request) table = @context[request["table"]] table.add(request["key"], request["values"]) outputs = [true] - post(outputs) end end end -------------- next part -------------- HTML����������������������������...Download