h2ocube_rails_rainbows 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/h2ocube_rails_rainbows.gemspec +1 -1
- data/lib/capistrano/tasks/rainbows.cap +8 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 833e34f12b8e2f41a139652deef219a73e907736
|
4
|
+
data.tar.gz: 0e8b470f95fdf4fd1c686aeaff461b0400d4579f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 -
|
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
|
-
|
23
|
-
|
24
|
-
|
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
|
|