[Groonga-commit] droonga/droonga-engine at 2e489c8 [master] Add utility method to get tag value from live nodes list

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jul 23 16:04:22 JST 2014


YUKI Hiroshi	2014-07-23 16:04:22 +0900 (Wed, 23 Jul 2014)

  New Revision: 2e489c85186e48930b73c3887d336861cc4ee489
  https://github.com/droonga/droonga-engine/commit/2e489c85186e48930b73c3887d336861cc4ee489

  Message:
    Add utility method to get tag value from live nodes list

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+5 -0)
===================================================================
--- lib/droonga/serf.rb    2014-07-23 15:57:57 +0900 (d39d46b)
+++ lib/droonga/serf.rb    2014-07-23 16:04:22 +0900 (0f4753e)
@@ -69,6 +69,11 @@ module Droonga
       def live_nodes(name)
         new(nil, name).live_nodes
       end
+
+      def tag(node_name, tag_name)
+        node_info = live_nodes(node_name)[node_name]
+        node_info["tags"][tag_name]
+      end
     end
 
     include Loggable
-------------- next part --------------
HTML����������������������������...
Download 



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