capistrano3-puma 5.1.0 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -2
- data/Rakefile +8 -0
- data/lib/capistrano/puma/version.rb +1 -1
- data/lib/capistrano/tasks/systemd.rake +6 -2
- 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: 35a491d73286ea1106e102209ae0f109db2505ebe1997ae4069ffdf063769dff
|
4
|
+
data.tar.gz: aee6845893c931caeaf32b0c4c2e99ce2e9eebc8db28d9e225bbec687a7a6f77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03f3f2f88622cbb6373f30569027d9df482a62ab41d0659023771fcf864dddf9b83d657967aaa1c8a9f82de6495f2cdd267219ec35b72289dd681d193ff48483
|
7
|
+
data.tar.gz: 2e3391e54baebd42cce79ff8c41af3682843a7757d8bd4ca2de9e671f7cd020e802d2af0c131a49b83b617b82e03298182ee61eafda16ee3fc7e5474334e531e
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [
|
3
|
+
## [5.1.1](https://github.com/seuros/capistrano-puma/tree/5.1.1) (2021-09-03)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/seuros/capistrano-puma/compare/v5.0.
|
5
|
+
[Full Changelog](https://github.com/seuros/capistrano-puma/compare/v5.1.0...5.1.1)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Reload also should support system mode. [\#331](https://github.com/seuros/capistrano-puma/pull/331) ([Eric-Guo](https://github.com/Eric-Guo))
|
10
|
+
|
11
|
+
## [v5.1.0](https://github.com/seuros/capistrano-puma/tree/v5.1.0) (2021-09-02)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/seuros/capistrano-puma/compare/v5.0.4...v5.1.0)
|
6
14
|
|
7
15
|
**Merged pull requests:**
|
8
16
|
|
data/Rakefile
CHANGED
@@ -100,13 +100,17 @@ namespace :puma do
|
|
100
100
|
desc 'Reload Puma service via systemd'
|
101
101
|
task :reload do
|
102
102
|
on roles(fetch(:puma_role)) do
|
103
|
-
service_ok =
|
103
|
+
service_ok = if fetch(:puma_systemctl_user) == :system
|
104
|
+
execute("#{fetch(:puma_systemctl_bin)} status #{fetch(:puma_service_unit_name)} > /dev/null", raise_on_non_zero_exit: false)
|
105
|
+
else
|
106
|
+
execute("#{fetch(:puma_systemctl_bin)} --user status #{fetch(:puma_service_unit_name)} > /dev/null", raise_on_non_zero_exit: false)
|
107
|
+
end
|
104
108
|
cmd = 'reload'
|
105
109
|
if !service_ok
|
106
110
|
cmd = 'restart'
|
107
111
|
end
|
108
112
|
if fetch(:puma_systemctl_user) == :system
|
109
|
-
sudo "#{fetch(:puma_systemctl_bin)}
|
113
|
+
sudo "#{fetch(:puma_systemctl_bin)} #{cmd} #{fetch(:puma_service_unit_name)}"
|
110
114
|
else
|
111
115
|
execute "#{fetch(:puma_systemctl_bin)}", "--user", cmd, fetch(:puma_service_unit_name)
|
112
116
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-puma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|