class GitHubPages::HealthCheck::Site
Attributes
domain[R]
repository[R]
Public Class Methods
new(repository_or_domain, access_token: nil)
click to toggle source
# File lib/github-pages-health-check/site.rb, line 8 def initialize(repository_or_domain, access_token: nil) @repository = Repository.new(repository_or_domain, :access_token => access_token) @domain = @repository.domain rescue GitHubPages::HealthCheck::Errors::InvalidRepositoryError @repository = nil @domain = Domain.redundant(repository_or_domain) end
Public Instance Methods
check!()
click to toggle source
# File lib/github-pages-health-check/site.rb, line 16 def check! [domain, repository].compact.each(&:check!) true end