olgen-god 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/god/conditions/ping.rb +1 -8
- data/olgen-god.gemspec +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/god/conditions/ping.rb
CHANGED
@@ -19,15 +19,8 @@ module God
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def test
|
22
|
-
|
23
|
-
|
24
|
-
cmd = "ping -t #{self.timeout} #{self.host}"
|
25
|
-
# puts cmd
|
22
|
+
cmd = "ping -W #{self.timeout} -c 5 #{self.host}"
|
26
23
|
ping_result = `#{cmd}`
|
27
|
-
# if ping_result=~ /no route to host/
|
28
|
-
# self.info "no route to host: #{self.host}"
|
29
|
-
# return false
|
30
|
-
# end
|
31
24
|
if ping_result=~/time=/
|
32
25
|
self.info = "Server reachable via ping!"
|
33
26
|
return self.trigger_on
|
data/olgen-god.gemspec
CHANGED