capistrano3-monit 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a056b360ac173648049fc0b7cab4ab3f05665f1
4
- data.tar.gz: 6bae8ea23ede5af92a9c27ac9c3423da2dabac38
3
+ metadata.gz: 39454117c6c2ebf09d10594920e41776078fab25
4
+ data.tar.gz: c630a583f33c4e9d36a9344e5d1836b4c22fba74
5
5
  SHA512:
6
- metadata.gz: 38dc88b7f2d3069d7c0d86c2c32aa1871130b841823d9741627bb5eff2680ef84febeb0024e9d945ce6d8e370e900fd82fc1b4ffd3a89524e583dbc890cdbb91
7
- data.tar.gz: d132396a55b7612b0401203aed1368a2fa392903fc2991705d4c8d91cff0e6fdd2a99d423fad3d3836dfef9e668146a5684853c0f41769a1931fa1ed5b55f3b5
6
+ metadata.gz: c9e6bab9fa1663350333b706f1cc9c09bba2cc1781bad349e6e0a801116f193f8c8ea73c45875a5f6352f2e5cc79527ccc98b7e1cbfd32589725c5ef069cac5c
7
+ data.tar.gz: c1178d970b253090cede7dd5abd7203294d0e749d88b1023c8ab0880eb141a520824eafb31c1b4663c3d5879d289a901c80589abedd56011ec0f73918a209a97
data/README.md CHANGED
@@ -18,8 +18,21 @@ The following tasks will be available to you:
18
18
  monit:stop # sends a stop signal to all monitored processes
19
19
  monit:restart # sends a restart signal to all monitored processes
20
20
 
21
- Additionally, `monit:restart` will automatically be called as a dependency of
22
- the `deploy:restart` task.
21
+ ### Automatic restart
22
+
23
+ Until version 0.3.0, `monit:restart` would automatically be hooked into your `deploy:restart` task. Starting in 0.4.0, that is no longer the case.
24
+
25
+ If you want to achieve the same result, you can something like the following to your `config/deploy.rb`:
26
+
27
+ ```ruby
28
+ namespace :deploy do
29
+ task :restart => 'monit:restart'
30
+ end
31
+
32
+ after 'deploy:publishing', 'deploy:restart'
33
+ ```
34
+
35
+ ## How it works
23
36
 
24
37
  Currently, the `start|stop|restart` tasks assume you only want to handle
25
38
  monitored processes related to the app being deployed. For this, the name of
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "capistrano3-monit"
7
- gem.version = '0.3.0'
7
+ gem.version = '0.4.0'
8
8
  gem.authors = ["Miguel Palhas"]
9
9
  gem.email = ["mpalhas@gmail.com"]
10
10
  gem.description = %q{Monit integration for Capistrano 3}
@@ -39,9 +39,3 @@ namespace :monit do
39
39
  end
40
40
  end
41
41
  end
42
-
43
- namespace :deploy do
44
- task :restart => 'monit:restart'
45
- end
46
-
47
- after 'deploy:publishing', 'deploy:restart'
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-monit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Palhas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-28 00:00:00.000000000 Z
11
+ date: 2015-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  description: Monit integration for Capistrano 3
@@ -31,7 +31,7 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - .gitignore
34
+ - ".gitignore"
35
35
  - Gemfile
36
36
  - LICENSE
37
37
  - README.md
@@ -50,17 +50,17 @@ require_paths:
50
50
  - lib
51
51
  required_ruby_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - '>='
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  requirements: []
62
62
  rubyforge_project:
63
- rubygems_version: 2.1.11
63
+ rubygems_version: 2.4.6
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: Monit integration for Capistrano 3