Class: Caramelize::HealthCheck

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

Constant Summary collapse

DEFAULT_GOLLUM_HOME_TITLE =
'Home'.freeze

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.



3
4
5
# File 'lib/caramelize/health_check.rb', line 3

def options
  @options
end

#wiki_pathObject (readonly)

Returns the value of attribute wiki_path.



3
4
5
# File 'lib/caramelize/health_check.rb', line 3

def wiki_path
  @wiki_path
end

Instance Method Details

#executeObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/caramelize/health_check.rb', line 12

def execute
  #puts page_paths.sort.inspect

  check_pages

  #puts intra_wiki_paths.sort.inspect

  puts "\n # Pages not linked within Wiki:"
  puts page_paths_without_intra_wiki_path.sort.inspect
end