dlss-capistrano 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dlss-capistrano.gemspec +1 -1
- data/lib/dlss/capistrano/tasks/bundled_sidekiq.rake +1 -1
- data/lib/dlss/capistrano/tasks/check_status.rake +1 -1
- data/lib/dlss/capistrano/tasks/sidekiq_systemd.rake +4 -4
- data/lib/dlss/capistrano/tasks/sneakers_systemd.rake +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c83f228efbada9563b37dee41ba9d92c9c0739be6ae0852e9141fd8bdfa27d8
|
4
|
+
data.tar.gz: b32eb019a8ff21b5e492a91c8a59ff133aed7f07b0143e6c49953c794c5b3ed6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b09739793af365242f7e7295fded043596973d12ae22096fd526411a7843ed495d93d43ea77a2b8211c0bf7d4529ad3005162e222302b0d7f17ede5a48f857a8
|
7
|
+
data.tar.gz: 39394b595c334c1ba591bdd8bcab7053a951281261e312703feb00efbf4a9e327a1c935f376bf9eaeeb35e8d98a305a0e97713dc39aa3ee1ab89143e671ff049
|
data/dlss-capistrano.gemspec
CHANGED
@@ -21,7 +21,7 @@ namespace :bundled_sidekiq do
|
|
21
21
|
|
22
22
|
# NOTE: no `desc` here to avoid publishing this task in the `cap -T` list
|
23
23
|
task :symlink do
|
24
|
-
on roles
|
24
|
+
on roles(fetch(:bundled_sidekiq_roles)) do
|
25
25
|
within release_path do
|
26
26
|
bundled_sidekiq_path = capture(:bundle, :info, '--path', :sidekiq)
|
27
27
|
execute(:ln, '-sf', bundled_sidekiq_path, "#{shared_path}/bundled_sidekiq")
|
@@ -8,7 +8,7 @@ end
|
|
8
8
|
|
9
9
|
desc 'Run status checks'
|
10
10
|
task :check_status do
|
11
|
-
on roles
|
11
|
+
on roles(fetch(:check_status_roles)), in: :sequence do |host|
|
12
12
|
status_url = "https://#{host}#{fetch(:check_status_path)}"
|
13
13
|
|
14
14
|
info "Checking status at #{status_url}"
|
@@ -24,28 +24,28 @@ namespace :sidekiq_systemd do
|
|
24
24
|
|
25
25
|
desc 'Stop workers from picking up new jobs'
|
26
26
|
task :quiet do
|
27
|
-
on roles
|
27
|
+
on roles(fetch(:sidekiq_systemd_role)) do
|
28
28
|
sudo :systemctl, 'reload', 'sidekiq-*', raise_on_non_zero_exit: false
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
desc 'Stop running workers gracefully'
|
33
33
|
task :stop do
|
34
|
-
on roles
|
34
|
+
on roles(fetch(:sidekiq_systemd_role)) do
|
35
35
|
sudo :systemctl, 'stop', 'sidekiq-*'
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
39
|
desc 'Start workers'
|
40
40
|
task :start do
|
41
|
-
on roles
|
41
|
+
on roles(fetch(:sidekiq_systemd_role)) do
|
42
42
|
sudo :systemctl, 'start', 'sidekiq-*', '--all'
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
46
|
desc 'Restart workers'
|
47
47
|
task :restart do
|
48
|
-
on roles
|
48
|
+
on roles(fetch(:sidekiq_systemd_role)) do
|
49
49
|
sudo :systemctl, 'restart', 'sidekiq-*', raise_on_non_zero_exit: false
|
50
50
|
end
|
51
51
|
end
|
@@ -23,21 +23,21 @@ namespace :sneakers_systemd do
|
|
23
23
|
|
24
24
|
desc 'Stop running workers gracefully'
|
25
25
|
task :stop do
|
26
|
-
on roles
|
26
|
+
on roles(fetch(:sneakers_systemd_role)) do
|
27
27
|
sudo :systemctl, 'stop', 'sneakers'
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
31
|
desc 'Start workers'
|
32
32
|
task :start do
|
33
|
-
on roles
|
33
|
+
on roles(fetch(:sneakers_systemd_role)) do
|
34
34
|
sudo :systemctl, 'start', 'sneakers'
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
38
|
desc 'Restart workers'
|
39
39
|
task :restart do
|
40
|
-
on roles
|
40
|
+
on roles(fetch(:sneakers_systemd_role)) do
|
41
41
|
sudo :systemctl, 'restart', 'sneakers', raise_on_non_zero_exit: false
|
42
42
|
end
|
43
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dlss-capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-04-
|
12
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|