vendor/bundle/ruby/2.7.0/gems/github-pages-health-check-1.17.0/lib/github-pages-health-check/domain.rb
# Runs all checks, raises an error if invalid
# rubocop:disable Metrics/AbcSize
Runs all checks, raises an error if invalid
rubocop:disable Metrics/AbcSize
Runs all checks raises an error if invalid rubocop : disable Metrics / AbcSize
def check!
        raise Errors::InvalidDomainError.new :domain => self unless valid_domain?
        raise Errors::InvalidDNSError.new :domain => self    unless dns_resolves?
        raise Errors::DeprecatedIPError.new :domain => self  if deprecated_ip?
        return true if proxied?
        raise Errors::InvalidARecordError.new :domain => self    if invalid_a_record?
        raise Errors::InvalidCNAMEError.new :domain => self      if invalid_cname?
        raise Errors::InvalidAAAARecordError.new :domain => self if invalid_aaaa_record?
        raise Errors::NotServedByPagesError.new :domain => self  unless served_by_pages?
        true
      end
def check! raise Errors :: InvalidDomainError . new :domain => self unless valid_domain? raise Errors :: InvalidDNSError . new :domain => self unless dns_resolves? raise Errors :: DeprecatedIPError . new :domain => self if deprecated_ip? return true if proxied? raise Errors :: InvalidARecordError . new :domain => self if invalid_a_record? raise Errors :: InvalidCNAMEError . new :domain => self if invalid_cname? raise Errors :: InvalidAAAARecordError . new :domain => self if invalid_aaaa_record? raise Errors :: NotServedByPagesError . new :domain => self unless served_by_pages? true end
Runs all checks, raises an error if invalid
rubocop:disable Metrics/AbcSize
Runs all checks raises an error if invalid rubocop : disable Metrics / AbcSize