capistrano3-puma 5.0.3 → 5.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73044aaf982d12bacb545460eec4a28a80735dfda025df5ee6a7b656f63185a1
4
- data.tar.gz: 768c19108f85c471feb7cfc341e04244af87c90ed91e59c13d44f7771269ca4a
3
+ metadata.gz: 4528e38ecbf164322621f3b7d410bc02afc0a768bb34d0aabfceb5ff580c0e3b
4
+ data.tar.gz: ef77825a1e3616b3d38d2e32d3d157ee586b190725b7f124eb06ee23e56878c3
5
5
  SHA512:
6
- metadata.gz: 725fa2b8f4686d644a3068d872b46b17f3f1e3e772f3efb63bcec68affbc793dc3e037220bf3c27bad86a4c8c71f492d140b51e4f6388cbd741762c4461764b8
7
- data.tar.gz: '03186b58d6b3574bb67ebd393827704bb69f2bf90a60412ba16ae9067f4a1c91b8d5150f95143bb1525df78417ab9e3b372e8d129f11b56b2a9498446c71a15e'
6
+ metadata.gz: 7b4a5bfe7b2bc2069ed44fcf9e182ae8e3e2507e1e22725216c891248a20d357e561b03a4aced23911dc3b1f5fdcca3838312efd2838a181ce69534749ed9e54
7
+ data.tar.gz: 711219b1bbeb37c64f48251b76adf1a472715e0f5aa38fae18e2e6252083735b7cc7fb7a58a35a00f583d4daee347be10be8fc81c2c26e39e91c2826b0117729
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  ## Changelog
2
+ - 5.0.4:
3
+ - fix: puma_systemctl_user default value (#319)
2
4
  - 5.0.3:
3
5
  - Remove ExecStop from systemd unit file (#314)
4
6
  - Systemd user service manager and lingering (#307)
data/README.md CHANGED
@@ -171,6 +171,9 @@ Configurable options, shown here with defaults: Please note the configuration op
171
171
  set :puma_tag, fetch(:application)
172
172
  set :puma_restart_command, 'bundle exec puma'
173
173
  set :puma_service_unit_name, "puma_#{fetch(:application)}_#{fetch(:stage)}"
174
+ set :puma_systemctl_user, :system # accepts :user
175
+ set :puma_enable_lingering, fetch(:puma_systemctl_user) != :system # https://wiki.archlinux.org/index.php/systemd/User#Automatic_start-up_of_systemd_user_instances
176
+ set :puma_lingering_user, fetch(:user)
174
177
  set :puma_service_unit_env_file, nil
175
178
  set :puma_service_unit_env_vars, []
176
179
 
@@ -13,8 +13,9 @@ module Capistrano
13
13
  def set_defaults
14
14
  set_if_empty :puma_systemctl_bin, '/bin/systemctl'
15
15
  set_if_empty :puma_service_unit_name, -> { "puma_#{fetch(:application)}_#{fetch(:stage)}" }
16
- set_if_empty :puma_service_unit_user, :system
17
- set_if_empty :puma_enable_lingering, false
16
+ set_if_empty :puma_systemctl_user, :system
17
+ set_if_empty :puma_enable_lingering, -> { fetch(:puma_systemctl_user) != :system }
18
+ set_if_empty :puma_lingering_user, -> { fetch(:user) }
18
19
  end
19
20
  end
20
21
  end
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- PUMAVERSION = '5.0.3'
2
+ PUMAVERSION = '5.0.4'
3
3
  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.0.3
4
+ version: 5.0.4
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-02-23 00:00:00.000000000 Z
11
+ date: 2021-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano