Module: GitHubPages::HealthCheck
- Defined in:
- lib/github-pages-health-check.rb,
lib/github-pages-health-check/caa.rb,
lib/github-pages-health-check/cdn.rb,
lib/github-pages-health-check/site.rb,
lib/github-pages-health-check/error.rb,
lib/github-pages-health-check/domain.rb,
lib/github-pages-health-check/errors.rb,
lib/github-pages-health-check/printer.rb,
lib/github-pages-health-check/version.rb,
lib/github-pages-health-check/resolver.rb,
lib/github-pages-health-check/checkable.rb,
lib/github-pages-health-check/repository.rb,
lib/github-pages-health-check/cdns/fastly.rb,
lib/github-pages-health-check/cdns/cloudflare.rb,
lib/github-pages-health-check/redundant_check.rb,
lib/github-pages-health-check/errors/build_error.rb,
lib/github-pages-health-check/errors/invalid_dns_error.rb,
lib/github-pages-health-check/errors/deprecated_ip_error.rb,
lib/github-pages-health-check/errors/invalid_cname_error.rb,
lib/github-pages-health-check/errors/invalid_domain_error.rb,
lib/github-pages-health-check/errors/invalid_a_record_error.rb,
lib/github-pages-health-check/errors/invalid_repository_error.rb,
lib/github-pages-health-check/errors/invalid_aaaa_record_error.rb,
lib/github-pages-health-check/errors/not_served_by_pages_error.rb,
lib/github-pages-health-check/errors/missing_access_token_error.rb
Defined Under Namespace
Modules: Errors Classes: CAA, CDN, Checkable, CloudFlare, Domain, Error, Fastly, Printer, RedundantCheck, Repository, Resolver, Site
Constant Summary collapse
- TIMEOUT =
DNS and HTTP timeout, in seconds
7
- HUMAN_NAME =
"GitHub Pages Health Check"
- URL =
"https://github.com/github/pages-health-check"
- USER_AGENT =
"Mozilla/5.0 (compatible; #{HUMAN_NAME}/#{VERSION}; +#{URL})"
- TYPHOEUS_OPTIONS =
{ :followlocation => true, :timeout => TIMEOUT, :accept_encoding => "gzip", :method => :head, :headers => { "User-Agent" => USER_AGENT } }.freeze
- VERSION =
"1.17.2"
Class Method Summary collapse
- .check(repository_or_domain, access_token: nil) ⇒ Object
-
.without_warnings(&block) ⇒ Object
surpress warn-level feedback due to unsupported record types.
Class Method Details
.check(repository_or_domain, access_token: nil) ⇒ Object
63 64 65 |
# File 'lib/github-pages-health-check.rb', line 63 def self.check(repository_or_domain, access_token: nil) Site.new repository_or_domain, :access_token => access_token end |
.without_warnings(&block) ⇒ Object
surpress warn-level feedback due to unsupported record types
55 56 57 58 59 60 61 |
# File 'lib/github-pages-health-check.rb', line 55 def self.without_warnings(&block) warn_level = $VERBOSE $VERBOSE = nil result = block.call $VERBOSE = warn_level result end |