[Groonga-commit] droonga/droonga-engine at eabd850 [master] Put implementations of commands under the namespace "Droonga::Command"

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 21 16:26:50 JST 2015


YUKI Hiroshi	2015-04-21 16:26:50 +0900 (Tue, 21 Apr 2015)

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

  Message:
    Put implementations of commands under the namespace "Droonga::Command"

  Modified files:
    bin/droonga-engine-absorb-data
    bin/droonga-engine-join

  Modified: bin/droonga-engine-absorb-data (+4 -2)
===================================================================
--- bin/droonga-engine-absorb-data    2015-04-21 16:24:28 +0900 (9f311a9)
+++ bin/droonga-engine-absorb-data    2015-04-21 16:26:50 +0900 (ff59bdc)
@@ -29,7 +29,8 @@ require "droonga/client"
 require "droonga/restarter"
 
 module Droonga
-  class AbsorbDataCommand
+  module Command
+    class AbsorbData
     def run
       @loop = Coolio::Loop.default
 
@@ -274,7 +275,8 @@ module Droonga
     def do_cancel
       #XXX we have to write more codes to cancel remote processes!
     end
+    end
   end
 end
 
-exit(Droonga::AbsorbDataCommand.new.run)
+exit(Droonga::Command::AbsorbData.new.run)

  Modified: bin/droonga-engine-join (+4 -2)
===================================================================
--- bin/droonga-engine-join    2015-04-21 16:24:28 +0900 (35f9e28)
+++ bin/droonga-engine-join    2015-04-21 16:26:50 +0900 (f59962c)
@@ -33,7 +33,8 @@ require "droonga/data_absorber_client"
 require "droonga/serf"
 
 module Droonga
-  class JoinCommand
+  module Command
+    class Join
     class MissingRequiredParameter < StandardError
     end
 
@@ -356,7 +357,8 @@ module Droonga
       reset_joining_node_role if @joining_node_role_changed
       reset_source_node_role if @source_node_role_changed
     end
+    end
   end
 end
 
-exit(Droonga::JoinCommand.new.run)
+exit(Droonga::Command::Join.new.run)
-------------- next part --------------
HTML����������������������������...
Download 



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