Class: RedisReplicationRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/redis-store/testing/redis_replication_runner.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir) ⇒ RedisReplicationRunner

Returns a new instance of RedisReplicationRunner.



8
9
10
# File 'lib/redis-store/testing/redis_replication_runner.rb', line 8

def initialize(dir)
  @dir = dir
end

Class Method Details

.runnersObject



4
5
6
# File 'lib/redis-store/testing/redis_replication_runner.rb', line 4

def self.runners
  [ RedisRunner, NodeOneRedisRunner, NodeTwoRedisRunner ]
end

Instance Method Details

#startObject



12
13
14
15
16
# File 'lib/redis-store/testing/redis_replication_runner.rb', line 12

def start
  runners.each do |runner|
    runner.start
  end
end

#stopObject



18
19
20
21
22
# File 'lib/redis-store/testing/redis_replication_runner.rb', line 18

def stop
  runners.each do |runner|
    runner.stop
  end
end