capistrano-php-fpm 0.1.2 → 1.0.0

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
  SHA1:
3
- metadata.gz: 87e0ff0eab8a75ac6bb126a6ffe9cb8c03b4832c
4
- data.tar.gz: b71bfe7791938e98b4f2358f5393e88f1fee50d1
3
+ metadata.gz: 48ac0c1ec815bf0ee078bc338227e1b9240750fa
4
+ data.tar.gz: a0d71dc3935a8b9e087eadf508c3f835c6907655
5
5
  SHA512:
6
- metadata.gz: e2e3381e5a5fdb42a8090a398ca52e59c9c0d96649064fef8bf31e5f6897021249a2a65eba700ab431d4967c296ce5485505d128368ac977a0cd5ea17bd88c4f
7
- data.tar.gz: ec82859cf2b24054ac9cca4ead7142189e31affa6779c42894d74e910e4de9a696dcdc5ad3ccbbf31f3e326ca01655aac640dd960121451e6d1dd338c07c4453
6
+ metadata.gz: 9c9266889c2d4cc478880d7a35a3c10bd3f98cf7b6c89e5dbeb83ad1225886e1506be36f57129ad85ba9cb5d6b97aedf94ba02cf8f9eed48978e2b7d168230af
7
+ data.tar.gz: 77e544159dc5857d3c2ab1d70c9f63f5d90a6dbeef6b6d2c8d9191bec31df43a6482f30b28b9faab4c089195ff0ed7cf18157057a594150d1d0a2b9fef196dcd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-php-fpm (0.1.2)
4
+ capistrano-php-fpm (1.0.0)
5
5
  capistrano (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -11,11 +11,11 @@ GEM
11
11
  i18n
12
12
  rake (>= 10.0.0)
13
13
  sshkit (~> 1.3)
14
- colorize (0.7.4)
14
+ colorize (0.7.7)
15
15
  i18n (0.7.0)
16
16
  net-scp (1.2.1)
17
17
  net-ssh (>= 2.6.5)
18
- net-ssh (2.9.2)
18
+ net-ssh (3.0.1)
19
19
  rake (10.4.2)
20
20
  sshkit (1.7.1)
21
21
  colorize (>= 0.7.0)
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Capistrano::PhpFpm
2
2
 
3
- capistrano-php-fpm support for Capistrano 3.x
3
+ php-fpm support for Capistrano 3.x
4
+
5
+ Makes it possible to reload/restart php-fpm during deploys
4
6
 
5
7
  ## Installation
6
8
 
@@ -27,14 +29,22 @@ Require in Capfile to use the default task:
27
29
  require 'capistrano/php-fpm'
28
30
  ```
29
31
 
30
- The task will run after `deploy:published` as part of Capistrano's default deploy,
31
- or can be run in isolation with `cap production php_fpm:reload`
32
+ Configure in deploy.rb to execute one of the tasks:
33
+
34
+ ```ruby
35
+ after 'deploy:published', 'php_fpm:reload'
36
+ after 'deploy:published', 'php_fpm:restart'
37
+ ```
38
+
39
+ You can also run it in isolation: `cap production php_fpm:reload` or `cap production php_fpm:restart`
32
40
 
33
41
  Configurable options:
34
42
 
35
43
  ```ruby
36
- set :php_fpm_reload_command, '/etc/init.d/php-fpm reload' # default
37
- set :php_fpm_roles, :all # default
44
+ set :php_fpm_reload_roles, :all
45
+ set :php_fpm_reload_command, '/etc/init.d/php-fpm reload'
46
+ set :php_fpm_restart_roles, :all
47
+ set :php_fpm_restart_command, '/etc/init.d/php-fpm reload'
38
48
  ```
39
49
 
40
50
  ## Development
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-php-fpm"
7
- spec.version = '0.1.2'
7
+ spec.version = '1.0.0'
8
8
  spec.authors = ["Emil Kilhage"]
9
9
  spec.email = ["emil.kilhage@glooby.com"]
10
10
 
11
- spec.summary = %q{nginx support for Capistrano 3.x}
12
- spec.description = %q{nginx support for Capistrano 3.x}
11
+ spec.summary = %q{php-fpm support for Capistrano 3.x}
12
+ spec.description = %q{php-fpm support for Capistrano 3.x}
13
13
  spec.homepage = "https://github.com/glooby/capistrano-php-fpm"
14
14
  spec.license = "MIT"
15
15
 
@@ -1,17 +1,23 @@
1
1
  namespace :php_fpm do
2
2
  desc "Reloads php-fpm"
3
3
  task :reload do
4
- on roles fetch(:php_fpm_roles) do
4
+ on roles fetch(:php_fpm_reload_roles) do
5
5
  execute fetch(:php_fpm_reload_command)
6
6
  end
7
7
  end
8
-
9
- after 'deploy:published', 'php_fpm:reload'
8
+ desc "Restarts php-fpm"
9
+ task :restart do
10
+ on roles fetch(:php_fpm_restart_roles) do
11
+ execute fetch(:php_fpm_restart_command)
12
+ end
13
+ end
10
14
  end
11
15
 
12
16
  namespace :load do
13
17
  task :defaults do
18
+ set :php_fpm_reload_roles, :all
14
19
  set :php_fpm_reload_command, '/etc/init.d/php-fpm reload'
15
- set :php_fpm_roles, :all
20
+ set :php_fpm_restart_roles, :all
21
+ set :php_fpm_restart_command, '/etc/init.d/php-fpm reload'
16
22
  end
17
23
  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: 0.1.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Kilhage
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-19 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
- description: nginx support for Capistrano 3.x
55
+ description: php-fpm support for Capistrano 3.x
56
56
  email:
57
57
  - emil.kilhage@glooby.com
58
58
  executables: []
@@ -95,5 +95,5 @@ rubyforge_project:
95
95
  rubygems_version: 2.4.8
96
96
  signing_key:
97
97
  specification_version: 4
98
- summary: nginx support for Capistrano 3.x
98
+ summary: php-fpm support for Capistrano 3.x
99
99
  test_files: []