redis-repeater 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/redis-repeater +6 -1
- data/lib/redis-repeater.rb +1 -1
- data/lib/redis-repeater/version.rb +1 -1
- metadata +3 -3
data/bin/redis-repeater
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require File.dirname(__FILE__) + '/../lib/redis-repeater'
|
4
|
-
|
4
|
+
|
5
|
+
if ARGV.empty?
|
6
|
+
puts "Please specify a config directory"
|
7
|
+
else
|
8
|
+
RedisRepeater::start(ARGV[0])
|
9
|
+
end
|
data/lib/redis-repeater.rb
CHANGED
@@ -16,7 +16,7 @@ module RedisRepeater
|
|
16
16
|
DefaultRedisPort = 6380
|
17
17
|
LogDefaultFilename = File.dirname(__FILE__) + '/../log/redis-repeater.log'
|
18
18
|
|
19
|
-
def self.start(config_dir
|
19
|
+
def self.start(config_dir)
|
20
20
|
|
21
21
|
# Connect to redis
|
22
22
|
config = YAML::load File.open("#{config_dir}/config.yml")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-repeater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Crepezzi
|