Method: Failbot::Haystack#ping
- Defined in:
- lib/failbot/haystack.rb
#ping ⇒ Object
37 38 39 40 41 |
# File 'lib/failbot/haystack.rb', line 37 def ping request = Net::HTTP::Head.new('/') response = send_request(request) raise StandardError, "haystack returned #{response.code}" unless response.code == "200" end |