redis_monitor 0.3 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -2
- data/lib/engine/tmp/.keep +0 -0
- data/lib/redis_monitor.rb +11 -3
- data/lib/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26945d3beb81a7f251aae5d4d976656b7a1cffaa
|
4
|
+
data.tar.gz: 454ce3146a697ca9dd7792f5ecebb4420803ca26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebd6dc834fd6c67c9b04e8aaae0566f4f6d7e6f5df5a1b0ac0133ff4d91bb64f8c1082b80231b03576403768f63bd2c869825c14d6f97b1d4b570cea695a133c
|
7
|
+
data.tar.gz: 1d39a1fcc48714c37c7e423bb9cd66212ab0be0f04a937b329581d4e9a052faa273cd93a3f3edfc020333abf412749853d7d6a0899bb2fb74441a469a262e158
|
data/.gitignore
CHANGED
File without changes
|
data/lib/redis_monitor.rb
CHANGED
@@ -14,12 +14,20 @@ module RedisMonitor
|
|
14
14
|
'production'
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.base_folder
|
18
|
+
File.dirname(__FILE__)
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.rakefile_path
|
22
|
+
"#{base_folder}/engine/Rakefile"
|
23
|
+
end
|
24
|
+
|
17
25
|
def self.run
|
18
26
|
args = parse_arguments
|
19
27
|
store_arguments(args)
|
20
28
|
|
21
|
-
system(
|
22
|
-
system(
|
23
|
-
system(
|
29
|
+
system("#{base_folder}/engine/bin/rake", '-f', rakefile_path, 'db:migrate', "RAILS_ENV=#{environment}")
|
30
|
+
system("#{base_folder}/engine/bin/delayed_job", 'restart', "RAILS_ENV=#{environment}")
|
31
|
+
system("#{base_folder}/engine/bin/rails", 's', '-p', args[:http_port].to_s, '-e', environment)
|
24
32
|
end
|
25
33
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Jimenez
|
@@ -337,6 +337,7 @@ files:
|
|
337
337
|
- lib/engine/spec/models/watch_key_task_spec.rb
|
338
338
|
- lib/engine/spec/models/watch_query_task_spec.rb
|
339
339
|
- lib/engine/spec/spec_helper.rb
|
340
|
+
- lib/engine/tmp/.keep
|
340
341
|
- lib/engine/vendor/assets/javascripts/.keep
|
341
342
|
- lib/engine/vendor/assets/stylesheets/.keep
|
342
343
|
- lib/redis_monitor.rb
|