capistrano3-monit 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/capistrano3-monit.gemspec +1 -1
- data/lib/capistrano/tasks/monit.rake +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a056b360ac173648049fc0b7cab4ab3f05665f1
|
4
|
+
data.tar.gz: 6bae8ea23ede5af92a9c27ac9c3423da2dabac38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38dc88b7f2d3069d7c0d86c2c32aa1871130b841823d9741627bb5eff2680ef84febeb0024e9d945ce6d8e370e900fd82fc1b4ffd3a89524e583dbc890cdbb91
|
7
|
+
data.tar.gz: d132396a55b7612b0401203aed1368a2fa392903fc2991705d4c8d91cff0e6fdd2a99d423fad3d3836dfef9e668146a5684853c0f41769a1931fa1ed5b55f3b5
|
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.3.0'
|
8
8
|
gem.authors = ["Miguel Palhas"]
|
9
9
|
gem.email = ["mpalhas@gmail.com"]
|
10
10
|
gem.description = %q{Monit integration for Capistrano 3}
|
@@ -28,13 +28,13 @@ namespace :monit do
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
def all_processes_do(
|
31
|
+
def all_processes_do(cmd)
|
32
32
|
on roles :app do
|
33
33
|
output = capture :sudo, :monit, :status
|
34
34
|
processes = output.lines.grep(/^Process '/).grep(/#{fetch(:application)}/)
|
35
35
|
processes.each do |process|
|
36
36
|
process_name = process.split(/\s+/).last.delete "'"
|
37
|
-
monit_do
|
37
|
+
monit_do cmd, process_name
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-monit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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-
|
11
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|