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 +4 -4
- data/h2ocube_rails_rainbows.gemspec +1 -1
- data/lib/capistrano/tasks/rainbows.cap +5 -4
- 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: 6646e41efdc1b6d741da98dc932c4824dd6cc4dc
|
4
|
+
data.tar.gz: 9b128a24cd79b35706b8f279b1edcb1ad49a4109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
23
|
-
|
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.
|
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-
|
11
|
+
date: 2014-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbows
|