capistrano3-monit 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -2
- data/capistrano3-monit.gemspec +1 -1
- data/lib/capistrano/tasks/monit.rake +0 -6
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39454117c6c2ebf09d10594920e41776078fab25
|
4
|
+
data.tar.gz: c630a583f33c4e9d36a9344e5d1836b4c22fba74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
22
|
-
|
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
|
data/capistrano3-monit.gemspec
CHANGED
@@ -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.
|
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}
|
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.
|
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:
|
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.
|
63
|
+
rubygems_version: 2.4.6
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: Monit integration for Capistrano 3
|