Method: OkComputer::PingCheck#check
- Defined in:
- lib/ok_computer/built_in_checks/ping_check.rb
#check ⇒ Object
Public: Return the status of the Ping check
22 23 24 25 26 27 28 |
# File 'lib/ok_computer/built_in_checks/ping_check.rb', line 22 def check tcp_socket_request "Ping check to #{host}:#{port} successful" rescue => e "Error: '#{e}'" mark_failure end |