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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96f83b13796cd417c0387989d66a7ed77b49f0fd
4
- data.tar.gz: e9141046e9c68dc98a6cdcee8dc9711da6189ecf
3
+ metadata.gz: 3a056b360ac173648049fc0b7cab4ab3f05665f1
4
+ data.tar.gz: 6bae8ea23ede5af92a9c27ac9c3423da2dabac38
5
5
  SHA512:
6
- metadata.gz: 08d83f72be1ffe57b12b5ed5d9d0c987d044cbc60ed9d98101de4ff203dc3a9f2a696128b556a64c54653165ee508bf5df1fd4212fa1ba7331de7b6e5c575e80
7
- data.tar.gz: d72bdb275727ba04449d27a6a832f63750d57079d628c1214efc4d45de46868ac00fa5ed524486464d9174dfa0fcd28e770a9faabbe5525f2841e716d8a3f19f
6
+ metadata.gz: 38dc88b7f2d3069d7c0d86c2c32aa1871130b841823d9741627bb5eff2680ef84febeb0024e9d945ce6d8e370e900fd82fc1b4ffd3a89524e583dbc890cdbb91
7
+ data.tar.gz: d132396a55b7612b0401203aed1368a2fa392903fc2991705d4c8d91cff0e6fdd2a99d423fad3d3836dfef9e668146a5684853c0f41769a1931fa1ed5b55f3b5
@@ -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.2.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(*args)
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 :restart, process_name
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.2.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-04 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano