Skip to content

Commit

Permalink
Define roles correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 27, 2014
1 parent 7921293 commit 5afe487
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/droonga/serf.rb
Expand Up @@ -23,6 +23,18 @@

module Droonga
class Serf
ROLE = {
:default => {
:port => 7946,
},
:source => {
:port => 7947,
},
:destination => {
:port => 7948,
},
}

class << self
def path
Droonga::Path.base + "serf"
Expand All @@ -32,18 +44,6 @@ def status_file
Droonga::Path.state + "status_file"
end

ROLE = {
:default => {
:port => 7946,
},
:source => {
:port => 7947,
},
:destination => {
:port => 7948,
},
}

def load_status
status_file = status_file
if status_file.exist?
Expand Down

0 comments on commit 5afe487

Please sign in to comment.