Class: Caramelize::HealthCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/caramelize/health_check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wiki_path, options = {}) ⇒ HealthCheck

Returns a new instance of HealthCheck.



7
8
9
10
# File 'lib/caramelize/health_check.rb', line 7

def initialize(wiki_path, options = {})
  @wiki_path = wiki_path
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/caramelize/health_check.rb', line 5

def options
  @options
end

#wiki_pathObject (readonly)

Returns the value of attribute wiki_path.



5
6
7
# File 'lib/caramelize/health_check.rb', line 5

def wiki_path
  @wiki_path
end

Instance Method Details

#executeObject



12
13
14
15
# File 'lib/caramelize/health_check.rb', line 12

def execute
  HealthChecks::HomePageCheck.new(gollum).check
  HealthChecks::OrphanedPagesCheck.new(gollum).check
end