class Aquatone::Detectors::Pingdom

Constants

CNAME_VALUE
RESPONSE_FINGERPRINT

Public Instance Methods

run() click to toggle source
# File lib/aquatone/detectors/pingdom.rb, line 14
def run
  return false unless cname_resource?
  return false unless resource_value == CNAME_VALUE
  get_request("http://#{host}/").body.include?(RESPONSE_FINGERPRINT)
end