[Groonga-commit] droonga/droonga-client-ruby at 97e3856 [master] Use given default protocol, port, host name, and port number for the default server

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 7 19:31:39 JST 2015


YUKI Hiroshi	2015-05-07 19:31:39 +0900 (Thu, 07 May 2015)

  New Revision: 97e3856d1bf41746b364a5d7494bb1955254b2a2
  https://github.com/droonga/droonga-client-ruby/commit/97e3856d1bf41746b364a5d7494bb1955254b2a2

  Message:
    Use given default protocol, port, host name, and port number for the default server

  Modified files:
    bin/droonga-send

  Modified: bin/droonga-send (+4 -1)
===================================================================
--- bin/droonga-send    2015-05-07 18:11:12 +0900 (0d90b2b)
+++ bin/droonga-send    2015-05-07 19:31:39 +0900 (67651a0)
@@ -171,7 +171,10 @@ parser.on("--[no-]validation",
 end
 request_json_files = parser.parse!(ARGV)
 
-servers << default_server if servers.empty?
+if servers.empty?
+  default_server = "#{options.default_protocol}:#{options.default_host}:#{options.default_port}/#{options.default_tag}"
+  servers << default_server
+end
 if messages_per_second > 0 and servers.size > 1
   messages_per_second = messages_per_second / servers.size
 end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index