olgen-god 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 1
2
+ :patch: 2
3
3
  :major: 0
4
4
  :minor: 8
@@ -19,15 +19,8 @@ module God
19
19
  end
20
20
 
21
21
  def test
22
- # ping_time = `df -P | grep -i " #{self.mount_point}$" | awk '{print $5}' | sed 's/%//'`
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{olgen-god}
8
- s.version = "0.8.1"
8
+ s.version = "0.8.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Preston-Werner, Eugen Martin"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: olgen-god
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner, Eugen Martin