Class: CheckHost

Inherits:
Object
  • Object
show all
Defined in:
lib/check_host.rb

Class Method Summary collapse

Class Method Details

.run(host, ip) ⇒ Boolean

run @param: host [String] the host name @param: ip [String] the host IP address

Returns:

  • (Boolean)

    true if notification has taken place, otherwise returns false



8
9
10
11
# File 'lib/check_host.rb', line 8

def self.run(host, ip)
  c = CheckHostIp.new(host, ip)
  c.notify
end