sensu 0.15.0.beta-java → 0.15.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/sensu/client.rb +7 -1
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/daemon.rb +2 -12
- data/lib/sensu/server.rb +7 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 246577a7d8a39cae4f8a51bd52676ff19fb1de84
|
4
|
+
data.tar.gz: 029913f9d921674e92ac2ec0311077295a77d0f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3b3e8c9d39b500e92848de67dc3a83c0d00c673e7093891141e3a073588c8089a9014beb2464b19eaf63757ce3e6f045f75b980d22b42ae06ff6b893629bbfc
|
7
|
+
data.tar.gz: 50f601c169b7308b800adf0b91dbaf3e5947fbe4805605e464912187fbafd64217acd2772887c261a80c5cb10890b9dfd0ff448db2ebd85f57b9d5c065dbc2d8
|
data/CHANGELOG.md
CHANGED
data/lib/sensu/client.rb
CHANGED
@@ -257,8 +257,14 @@ module Sensu
|
|
257
257
|
end
|
258
258
|
|
259
259
|
def pause
|
260
|
-
|
260
|
+
unless @state == :pausing || @state == :paused
|
261
|
+
@state = :pausing
|
262
|
+
@timers[:run].each do |timer|
|
263
|
+
timer.cancel
|
264
|
+
end
|
265
|
+
@timers[:run].clear
|
261
266
|
@transport.unsubscribe
|
267
|
+
@state = :paused
|
262
268
|
end
|
263
269
|
end
|
264
270
|
|
data/lib/sensu/constants.rb
CHANGED
data/lib/sensu/daemon.rb
CHANGED
@@ -90,18 +90,8 @@ module Sensu
|
|
90
90
|
@state = :running
|
91
91
|
end
|
92
92
|
|
93
|
-
def pause
|
94
|
-
|
95
|
-
@state = :pausing
|
96
|
-
@timers[:run].each do |timer|
|
97
|
-
timer.cancel
|
98
|
-
end
|
99
|
-
@timers[:run].clear
|
100
|
-
if block
|
101
|
-
block.call
|
102
|
-
end
|
103
|
-
@state = :paused
|
104
|
-
end
|
93
|
+
def pause
|
94
|
+
@state = :paused
|
105
95
|
end
|
106
96
|
|
107
97
|
def resume
|
data/lib/sensu/server.rb
CHANGED
@@ -728,9 +728,15 @@ module Sensu
|
|
728
728
|
end
|
729
729
|
|
730
730
|
def pause
|
731
|
-
|
731
|
+
unless @state == :pausing || @state == :paused
|
732
|
+
@state = :pausing
|
733
|
+
@timers[:run].each do |timer|
|
734
|
+
timer.cancel
|
735
|
+
end
|
736
|
+
@timers[:run].clear
|
732
737
|
unsubscribe
|
733
738
|
resign_as_master
|
739
|
+
@state = :paused
|
734
740
|
end
|
735
741
|
end
|
736
742
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.0
|
4
|
+
version: 0.15.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-10-
|
12
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|
@@ -265,9 +265,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
265
265
|
version: '0'
|
266
266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
267
|
requirements:
|
268
|
-
- - '
|
268
|
+
- - '>='
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version:
|
270
|
+
version: '0'
|
271
271
|
requirements: []
|
272
272
|
rubyforge_project:
|
273
273
|
rubygems_version: 2.1.9
|