h2ocube_rails_rainbows 0.0.1 → 0.0.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: 1f33338725d85540a3d605293713f37a8728eef6
4
- data.tar.gz: a09f951aaf48f1376bb56bf9b57c0e8f4739c50c
3
+ metadata.gz: 833e34f12b8e2f41a139652deef219a73e907736
4
+ data.tar.gz: 0e8b470f95fdf4fd1c686aeaff461b0400d4579f
5
5
  SHA512:
6
- metadata.gz: 1558c062f698f0bfd071add0ef46c170370c55fbba636c29619aae3a3f031123dea3b1ef2845a240573802ef4635dca31ad2021604dce3c47e7832cbfb612f6c
7
- data.tar.gz: 3967a2b1a486d62f09c74d0546ad2c80b10a3a30f81842a7976ee9315007fdf1ad8400d8c73212253440c37319442f639eae89ce396dfb7e9ccfe16d6a9ef61d
6
+ metadata.gz: ce6b5f81a88b3db6718b62cfe7ef74243acfb804ab6ece680bf1f6d5e4cc6862eff1d5849049b43811b74ca9fdef454533f547726007a6b9105094de1f42ae97
7
+ data.tar.gz: 2b1af2e8b1bdc0c124ba1389a53c9285c668b930b58074f91fdf2268d4108ae790471677ca71af8b6949905d3ada882ea4430455c8086986cffa35f64c715a31
@@ -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.1'
7
+ spec.version = '0.0.2'
8
8
  spec.authors = ['Ben']
9
9
  spec.email = ['ben@zfben.com']
10
10
  spec.description = %q{Rainbows! helper}
@@ -3,7 +3,7 @@ namespace :rainbows do
3
3
  task :start do
4
4
  on roles :app do
5
5
  within release_path do
6
- execute :bundle, "exec rainbows -C config/rainbows.rb --listen 'unix://#{shared_path}/sockets/rainbows.sock' -E #{fetch(:stage)} --pid '#{shared_path}/pids/rainbows.pid' -D"
6
+ execute :bundle, "exec rainbows -c config/rainbows.rb --listen 'unix://#{shared_path}/sockets/rainbows.sock' -E #{fetch(:stage)} --pid '#{shared_path}/pids/rainbows.pid' -D"
7
7
  end
8
8
  end
9
9
  end
@@ -19,10 +19,14 @@ namespace :rainbows do
19
19
 
20
20
  desc 'Restart rainbows'
21
21
  task :restart do
22
- on roles :app do
23
- within release_path do
24
- execute "kill -s USR2 `cat #{shared_path}/pids/rainbows.pid`;true"
22
+ if 'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip
23
+ on roles :app do
24
+ within release_path do
25
+ execute "kill -s USR2 `cat #{shared_path}/pids/rainbows.pid`;true"
26
+ end
25
27
  end
28
+ else
29
+ invoke 'rainbows:start'
26
30
  end
27
31
  end
28
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_rainbows
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben