h2ocube_rails_rainbows 0.0.3 → 0.0.4

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: bba380fd24836fcb1f4a5909df48e661adde4030
4
- data.tar.gz: b9eb48ce726aba01db841e71eac3957a76f5d62d
3
+ metadata.gz: 6646e41efdc1b6d741da98dc932c4824dd6cc4dc
4
+ data.tar.gz: 9b128a24cd79b35706b8f279b1edcb1ad49a4109
5
5
  SHA512:
6
- metadata.gz: d69af04e026d40fcad854a9ee907fe5763b6cdb22b9a95a9a9c0da9671ec0b549c9e156e0c4a373b554ddc69430a0f2ce463694f22c143f18b41874d6cb6c898
7
- data.tar.gz: 1ae9776cb8c2b815998ab893fe42b4cebc6fb2dcbe16919dceb5bc4b3e26dde176f670948cb6bead7566038f9c74e1fd8d7ad735a49f9fce191d6a1269b7e147
6
+ metadata.gz: 1609e592fe7fd141b36c5112f293466bccc2a1be9a55abe2ddc64e6c3204f0fe96bb44bd717f65222332cbec5f9438e17cae90bb32f805f7b6d59e106c1de723
7
+ data.tar.gz: 986770036a2f648b288a2fd11b0ec03e0fd38faf08bc44fd6c20ea8191fac8682f134d22a821e9a755eccd5075dcd61d90eb7eb376275df1350eda4597213b02
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'h2ocube_rails_rainbows'
7
- spec.version = '0.0.3'
7
+ spec.version = '0.0.4'
8
8
  spec.authors = ['Ben']
9
9
  spec.email = ['ben@zfben.com']
10
10
  spec.description = %q{Rainbows! helper}
@@ -19,15 +19,16 @@ namespace :rainbows do
19
19
 
20
20
  desc 'Restart rainbows'
21
21
  task :restart do
22
- if 'true' == capture("if [ -e #{shared_path}/pids/rainbows.pid ]; then echo 'true'; fi").strip
23
- on roles :app do
22
+ pid_exist = true
23
+ on roles :app do
24
+ pid_exist = 'true' == capture("if [ -e #{shared_path}/pids/rainbows.pid ]; then echo 'true'; fi").strip
25
+ if pid_exist
24
26
  within release_path do
25
27
  execute "kill -s USR2 `cat #{shared_path}/pids/rainbows.pid`;true"
26
28
  end
27
29
  end
28
- else
29
- invoke 'rainbows:start'
30
30
  end
31
+ invoke 'rainbows:start' unless pid_exist
31
32
  end
32
33
 
33
34
  desc 'Cold Restart rainbows'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_rainbows
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-30 00:00:00.000000000 Z
11
+ date: 2014-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbows