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 CHANGED
@@ -1,4 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require File.dirname(__FILE__) + '/../lib/redis-repeater'
4
- RedisRepeater::start(ARGV.empty? ? File.dirname(__FILE__) + '/../config' : ARGV[0])
4
+
5
+ if ARGV.empty?
6
+ puts "Please specify a config directory"
7
+ else
8
+ RedisRepeater::start(ARGV[0])
9
+ end
@@ -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 = File.dirname(__FILE__) + '/../config')
19
+ def self.start(config_dir)
20
20
 
21
21
  # Connect to redis
22
22
  config = YAML::load File.open("#{config_dir}/config.yml")
@@ -1,5 +1,5 @@
1
1
  module RedisRepeater
2
2
 
3
- VERSION = [0, 0, 2]
3
+ VERSION = [0, 0, 3]
4
4
 
5
5
  end
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Crepezzi