class Aquatone::Detectors::GithubPages
Constants
- APEX_VALUES
- CNAME_VALUE
- RESPONSE_FINGERPRINT
Public Instance Methods
run()
click to toggle source
# File lib/aquatone/detectors/github_pages.rb, line 15 def run if apex_resource? return false unless APEX_VALUES.include?(resource_value) elsif cname_resource? return false unless resource_value.end_with?(CNAME_VALUE) end get_request("http://#{host}/").body.include?(RESPONSE_FINGERPRINT) end