srvmonitor 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,12 +56,11 @@ module SrvMonitor
56
56
  tries = 0
57
57
 
58
58
  @scouts.each do |scout|
59
- tries += 1
60
-
61
59
  scout.run(@reports)
62
60
 
63
61
  if scout.status == alert[:if]
64
- if tries <= alert[:retries]
62
+ if tries < alert[:retries]
63
+ tries += 1
65
64
  redo
66
65
  else
67
66
  tries = 0
@@ -47,12 +47,12 @@ module SrvMonitor
47
47
  loop do
48
48
  @applications.each do |app|
49
49
  app.run(@alert)
50
+ end
50
51
 
51
- unless status == @alert[:if]
52
- sleep @wait
53
- else
54
- notify!
55
- end
52
+ unless status == @alert[:if]
53
+ sleep @wait
54
+ else
55
+ notify!
56
56
  end
57
57
 
58
58
  break unless @forever
@@ -1,5 +1,5 @@
1
1
  module SrvMonitor
2
- PATCH = 5
2
+ PATCH = 6
3
3
  MINOR = 0
4
4
  MAJOR = 0
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}".freeze
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: srvmonitor
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 19
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 5
9
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Click Jogos
@@ -60,23 +61,27 @@ rdoc_options: []
60
61
  require_paths:
61
62
  - lib
62
63
  required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
63
65
  requirements:
64
66
  - - ">="
65
67
  - !ruby/object:Gem::Version
68
+ hash: 3
66
69
  segments:
67
70
  - 0
68
71
  version: "0"
69
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
70
74
  requirements:
71
75
  - - ">="
72
76
  - !ruby/object:Gem::Version
77
+ hash: 3
73
78
  segments:
74
79
  - 0
75
80
  version: "0"
76
81
  requirements: []
77
82
 
78
83
  rubyforge_project: srvmonitor
79
- rubygems_version: 1.3.6
84
+ rubygems_version: 1.6.2
80
85
  signing_key:
81
86
  specification_version: 3
82
87
  summary: Server monitor.