redis_test 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis_test.rb +8 -3
- data/lib/redis_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8368903fa52ac4f275e7c86e6924b3a952d4a63
|
4
|
+
data.tar.gz: 6a190474427b22f830ac8cac194d8ff2649b7c94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70fd6880d2beee167d05f663de97b3e8d4ea47158d8d3628c91c2a31e7107473cfea789925a647abea6a57810c13fb34c789dd8e5e505a46cbbd255baef6062f
|
7
|
+
data.tar.gz: cc2733d098ef59abf05d3aafe0a98a7609b61cdd46f292f6a661df5e9916163fe2fc52a9cb2550389b2bcf172f93f4c72ec27cef4786b11d399c44bb192651cf
|
data/lib/redis_test.rb
CHANGED
@@ -11,11 +11,15 @@ module RedisTest
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def cache_path
|
14
|
-
"#{
|
14
|
+
"#{Dir.pwd}/tmp/cache/#{port}/"
|
15
15
|
end
|
16
16
|
|
17
17
|
def pids_path
|
18
|
-
"#{
|
18
|
+
"#{Dir.pwd}/tmp/pids"
|
19
|
+
end
|
20
|
+
|
21
|
+
def logs_path
|
22
|
+
"#{Dir.pwd}/log"
|
19
23
|
end
|
20
24
|
|
21
25
|
def pidfile
|
@@ -23,7 +27,7 @@ module RedisTest
|
|
23
27
|
end
|
24
28
|
|
25
29
|
def logfile
|
26
|
-
"#{
|
30
|
+
"#{logs_path}/redis.#{port}.log"
|
27
31
|
end
|
28
32
|
|
29
33
|
def loglevel
|
@@ -37,6 +41,7 @@ module RedisTest
|
|
37
41
|
def start
|
38
42
|
FileUtils.mkdir_p cache_path
|
39
43
|
FileUtils.mkdir_p pids_path
|
44
|
+
FileUtils.mkdir_p logs_path
|
40
45
|
|
41
46
|
redis_options = {
|
42
47
|
"daemonize" => 'yes',
|
data/lib/redis_test/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phuong Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|