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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b306ec30c262af4c5130f654efee0356f2652ff8
4
- data.tar.gz: 7ee38ccac2e96471493eeb7349876395786bb43f
3
+ metadata.gz: 26945d3beb81a7f251aae5d4d976656b7a1cffaa
4
+ data.tar.gz: 454ce3146a697ca9dd7792f5ecebb4420803ca26
5
5
  SHA512:
6
- metadata.gz: 95da81fb9d481224903eb4f6a25aa49c28b2f283e3aa0747be13dc9bb73bdffb2c75eb3a4a68e6e70464ea0e969525756ad9c2c2bf24a7d73d3384d1e23a150b
7
- data.tar.gz: fc1a93aef1fb52ab9e8ae2a3c8eeb465f4ba61a52811b702e18f0394e2415ce0a29b967c871c3093428435c31b40640b6c0cf57107eb3a513fea18e2a0533a18
6
+ metadata.gz: ebd6dc834fd6c67c9b04e8aaae0566f4f6d7e6f5df5a1b0ac0133ff4d91bb64f8c1082b80231b03576403768f63bd2c869825c14d6f97b1d4b570cea695a133c
7
+ data.tar.gz: 1d39a1fcc48714c37c7e423bb9cd66212ab0be0f04a937b329581d4e9a052faa273cd93a3f3edfc020333abf412749853d7d6a0899bb2fb74441a469a262e158
data/.gitignore CHANGED
@@ -12,8 +12,6 @@ lib/bundler/man
12
12
  pkg
13
13
  rdoc
14
14
  spec/reports
15
- test/tmp
16
- test/version_tmp
17
15
  tmp
18
16
  .rvmrc
19
17
  .idea
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('lib/engine/bin/rake', 'db:migrate', "RAILS_ENV=#{environment}")
22
- system('lib/engine/bin/delayed_job', 'restart', "RAILS_ENV=#{environment}")
23
- system('lib/engine/bin/rails', 's', '-p', args[:http_port].to_s, '-e', environment)
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
@@ -1,3 +1,3 @@
1
1
  module RedisMonitor
2
- VERSION = '0.3'
2
+ VERSION = '0.3.2'
3
3
  end
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: '0.3'
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