class Aquatone::Detectors::Shopify

Constants

APEX_VALUE
CNAME_VALUE
RESPONSE_FINGERPRINT

Public Instance Methods

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