Sha256: be122c37271de7c1474e08f115cd80ffbc97104aafda6d62b7fc773082b71052
Contents?: true
Size: 459 Bytes
Versions: 4
Compression:
Stored size: 459 Bytes
Contents
# frozen_string_literal: true module Caramelize class HealthCheck attr_reader :wiki_path, :options def initialize(wiki_path, options = {}) @wiki_path = wiki_path @options = options end def execute HealthChecks::HomePageCheck.new(gollum).check HealthChecks::OrphanedPagesCheck.new(gollum).check end private def gollum @gollum ||= ::Gollum::Wiki.new(wiki_path, { ref: 'main' }) end end end
Version data entries
4 entries across 4 versions & 1 rubygems