capistrano-php-fpm 2.0.0 → 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: 8a0bfedbe189e38adf5b99ac43f686adc7cb040bc22dac62d7b611fed72524d4
4
- data.tar.gz: 69088649a04169fd529c3c9455daf0ba8ece3de451323a1ee03ce499da76f3e7
3
+ metadata.gz: f012b8bea6af454a9756f27dd7cd4b0ac78057e18783cb04d9f6332297cb85ec
4
+ data.tar.gz: 59c5b7ad7d8c4ebf27c71e2b243408fe65e8db1aabe50eb4464387577d7497f1
5
5
  SHA512:
6
- metadata.gz: e2d6e81e961bf1c4891dddb5dbc0c3ffbc6d394dbd3a748a4d4d99aeb24752c50c4209a0cbb6e15bff1ac46650f6f271d6d6aab0a164eed6f15a643e2c502b0b
7
- data.tar.gz: 27b5583d84dbd92a27010cfc3a082574af53870c84d43fdf9568b4637efd0d90634804ea10c6e67102dc986cc15acdd43fce14ee5c62ae9c497e87ae6fd905f6
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
@@ -1,2 +1,2 @@
1
- load File.expand_path('../php-fpm.rake', __FILE__) # Load configuration options
1
+ load File.expand_path('../php_fpm.rake', __FILE__) # Load configuration options
2
2
  load File.expand_path('../tasks/sysv_upstart.rake', __FILE__)
@@ -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.0'
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.0
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-01-29 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: []