Navigation Menu

Skip to content

Commit

Permalink
Put implementations of commands under the namespace "Droonga::Command"
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 21, 2015
1 parent ac30ee5 commit eabd850
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions bin/droonga-engine-absorb-data
Expand Up @@ -29,7 +29,8 @@ require "droonga/client"
require "droonga/restarter"

module Droonga
class AbsorbDataCommand
module Command
class AbsorbData
def run
@loop = Coolio::Loop.default

Expand Down Expand Up @@ -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)
6 changes: 4 additions & 2 deletions bin/droonga-engine-join
Expand Up @@ -33,7 +33,8 @@ require "droonga/data_absorber_client"
require "droonga/serf"

module Droonga
class JoinCommand
module Command
class Join
class MissingRequiredParameter < StandardError
end

Expand Down Expand Up @@ -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)

0 comments on commit eabd850

Please sign in to comment.