focus_common 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 +4 -4
- data/lib/focus_common/capistrano.rb +26 -2
- data/lib/focus_common/version.rb +1 -1
- data/makefile +8 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 515e0d24e0dbb77aeb8e11135e9b1a241c8eb57c
|
4
|
+
data.tar.gz: 402482fa00cf2edc78e23146d4a287b4060195e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8d8d042421fa286fc97beffee421d43d830985963ff8ff8d83d69374cf6222d6e88d96561bf789b7b36078e564a82ebcf4348d4687ce9922968af76ae29fc7
|
7
|
+
data.tar.gz: 660545e1ba7657395faf069ff9277641d08760e31ef677252a9f128edcb102cac91d84ac4eab78ccc5bec0e5709edf2f58adcc4811bf5f41103d6ded3cdbae4e
|
@@ -2,7 +2,7 @@ namespace :systemd do
|
|
2
2
|
|
3
3
|
[:start, :stop, :restart].each do |cmd|
|
4
4
|
task "app_#{cmd}" do
|
5
|
-
on roles(:app) do
|
5
|
+
on roles(:app), in: :sequence, wait: 5 do
|
6
6
|
within release_path do
|
7
7
|
execute "sudo systemctl #{cmd} rails_#{fetch(:application)}"
|
8
8
|
end
|
@@ -10,7 +10,7 @@ namespace :systemd do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
task "sidekiq_#{cmd}" do
|
13
|
-
on roles(:app) do
|
13
|
+
on roles(:app), in: :sequence, wait: 5 do
|
14
14
|
within release_path do
|
15
15
|
execute "sudo systemctl #{cmd} sidekiq_#{fetch(:application)}"
|
16
16
|
end
|
@@ -20,3 +20,27 @@ namespace :systemd do
|
|
20
20
|
|
21
21
|
end
|
22
22
|
|
23
|
+
namespace :thin do
|
24
|
+
[:start, :stop, :restart].each do |cmd|
|
25
|
+
task "#{cmd}" do
|
26
|
+
on roles(:app), in: :sequence, wait: 5 do
|
27
|
+
within release_path do
|
28
|
+
with rails_env: fetch(:rails_env) do
|
29
|
+
execute :bundle, "exec", "thin", cmd, "-C", "config/thin.yml"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
namespace :helpers do
|
39
|
+
task :test do
|
40
|
+
on roles(:app) do
|
41
|
+
within release_path do
|
42
|
+
execute :echo, '$STAGE'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/lib/focus_common/version.rb
CHANGED
data/makefile
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: focus_common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- linjunhalida
|
@@ -26,6 +26,7 @@ files:
|
|
26
26
|
- lib/focus_common.rb
|
27
27
|
- lib/focus_common/capistrano.rb
|
28
28
|
- lib/focus_common/version.rb
|
29
|
+
- makefile
|
29
30
|
homepage: https://github.com/halida/focus_common
|
30
31
|
licenses:
|
31
32
|
- LGPL-3.0
|