capistrano-php-fpm 2.0.1 → 2.1.1

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: c9f45fe91ca2716c094d383ee406fb5f3ed6eb7ca59d95b0017026a230e364f3
4
- data.tar.gz: 2c387fc3f87639d1e444a185cf82d3b8ebb558489214d2645ad05a539b1e2300
3
+ metadata.gz: f012b8bea6af454a9756f27dd7cd4b0ac78057e18783cb04d9f6332297cb85ec
4
+ data.tar.gz: 59c5b7ad7d8c4ebf27c71e2b243408fe65e8db1aabe50eb4464387577d7497f1
5
5
  SHA512:
6
- metadata.gz: 893fc58c5ca094868b487e2678c6caea0f511f701fed993ecfff1daa2d5eab7a40d6685fd7d945d01577e73f91fc9cc2d23059a07f5f9862e35d0a07a218002c
7
- data.tar.gz: 23014911b18c286359076f03481efb402b2ac55f294fc85fc7d1a09de6ae53d06b8a5cd7b21db46ddd005a665496349fa269e7d5e7e2942543520cedf9980bc1
6
+ metadata.gz: e28a0532bda7a8531d63b7c9f11f49c881a481f6ea3cf65648f2a448d2a82b59433994b2338c03eb033d55e7b561ccf66c5fe0aab37d29bc171750b21e852b1b
7
+ data.tar.gz: 22428ed84818fbcd905fcb97cad5096fe9c5def53410c26b0a9caa6146663f00d526aab224d9517c217a1c8972210b981a4cdbb5b02756f535f567d7aa0bd9d2
data/README.md CHANGED
@@ -56,6 +56,7 @@ Configurable options shown here are also the defaults:
56
56
  set :php_fpm_with_sudo, true
57
57
  set :php_fpm_roles, :web
58
58
  set :php_fpm_service_name, 'php-fpm' # Change this if you have non-standard naming for the php-fpm service
59
+ set :php_fpm_service_suffix, '.service' # Only used for systemd environment, change this if your service name is not sufixed by this
59
60
  set :systemctl_location, '/bin/systemctl' # May already exist if you use other plugins. Be sure to check your config/deploy/{env} file
60
61
  ```
61
62
 
@@ -3,6 +3,7 @@ namespace :load do
3
3
  set :php_fpm_with_sudo, true
4
4
  set :php_fpm_roles, :web
5
5
  set :php_fpm_service_name, 'php-fpm'
6
+ set :php_fpm_service_suffix, '.service'
6
7
  set :systemctl_location, '/bin/systemctl'
7
8
  end
8
9
  end
@@ -2,35 +2,35 @@ namespace :'php_fpm' do
2
2
  desc 'Reload php_fpm'
3
3
  task :reload do
4
4
  on release_roles(fetch(:php_fpm_roles)) do
5
- fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "reload #{fetch(:php_fpm_service_name)}.service") : execute(fetch(:systemctl_location), "reload #{fetch(:php_fpm_service_name)}.service")
5
+ fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "reload #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "reload #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
6
6
  end
7
7
  end
8
8
 
9
9
  desc 'Zap php_fpm'
10
10
  task :zap do
11
11
  on release_roles(fetch(:php_fpm_roles)) do
12
- fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "zap #{fetch(:php_fpm_service_name)}.service") : execute(fetch(:systemctl_location), "zap #{fetch(:php_fpm_service_name)}.service")
12
+ fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "zap #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "zap #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
13
13
  end
14
14
  end
15
15
 
16
16
  desc 'Stop php_fpm'
17
17
  task :stop do
18
18
  on release_roles(fetch(:php_fpm_roles)) do
19
- fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "stop #{fetch(:php_fpm_service_name)}.service") : execute(fetch(:systemctl_location), "stop #{fetch(:php_fpm_service_name)}.service")
19
+ fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "stop #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "stop #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
20
20
  end
21
21
  end
22
22
 
23
23
  desc 'Start php_fpm'
24
24
  task :start do
25
25
  on release_roles(fetch(:php_fpm_roles)) do
26
- fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "start #{fetch(:php_fpm_service_name)}.service") : execute(fetch(:systemctl_location), "start #{fetch(:php_fpm_service_name)}.service")
26
+ fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "start #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "start #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
27
27
  end
28
28
  end
29
29
 
30
30
  desc 'Restart php_fpm'
31
31
  task :restart do
32
32
  on release_roles(fetch(:php_fpm_roles)) do
33
- fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "restart #{fetch(:php_fpm_service_name)}.service") : execute(fetch(:systemctl_location), "restart #{fetch(:php_fpm_service_name)}.service")
33
+ fetch(:php_fpm_with_sudo) ? execute(:sudo, fetch(:systemctl_location), "restart #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}") : execute(fetch(:systemctl_location), "restart #{fetch(:php_fpm_service_name)}#{fetch(:php_fpm_service_suffix)}")
34
34
  end
35
35
  end
36
36
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module PHP_FPM
3
- VERSION = '2.0.1'
3
+ VERSION = '2.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-php-fpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sullivan Senechal, Nathan Pierce
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-20 00:00:00.000000000 Z
11
+ date: 2023-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -63,7 +63,7 @@ homepage: https://github.com/capistrano-plugins/capistrano-php-fpm
63
63
  licenses:
64
64
  - MIT
65
65
  metadata: {}
66
- post_install_message:
66
+ post_install_message:
67
67
  rdoc_options: []
68
68
  require_paths:
69
69
  - lib
@@ -78,9 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []
81
- rubyforge_project:
82
- rubygems_version: 2.7.4
83
- signing_key:
81
+ rubygems_version: 3.3.23
82
+ signing_key:
84
83
  specification_version: 4
85
84
  summary: Capistrano extension for PHP-FPM tasks
86
85
  test_files: []