class Caramelize::HealthCheck

Attributes

options[R]
wiki_path[R]

Public Class Methods

new(wiki_path, options = {}) click to toggle source
# File lib/caramelize/health_check.rb, line 7
def initialize(wiki_path, options = {})
  @wiki_path = wiki_path
  @options = options
end

Public Instance Methods

execute() click to toggle source
# File lib/caramelize/health_check.rb, line 12
def execute
  HealthChecks::HomePageCheck.new(gollum).check
  HealthChecks::OrphanedPagesCheck.new(gollum).check
end

Private Instance Methods

gollum() click to toggle source
# File lib/caramelize/health_check.rb, line 19
def gollum
  @gollum ||= ::Gollum::Wiki.new(wiki_path, { ref: 'main' })
end