Class: Caramelize::HealthChecks::OrphanedPagesCheck

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gollum) ⇒ OrphanedPagesCheck

Returns a new instance of OrphanedPagesCheck.



8
9
10
11
12
# File 'lib/caramelize/health_checks/orphaned_pages_check.rb', line 8

def initialize(gollum)
  @gollum = gollum
  @intra_wiki_paths = []
  @all_intra_wiki_paths = []
end

Instance Attribute Details

#all_intra_wiki_pathsObject (readonly)

Returns the value of attribute all_intra_wiki_paths.



6
7
8
# File 'lib/caramelize/health_checks/orphaned_pages_check.rb', line 6

def all_intra_wiki_paths
  @all_intra_wiki_paths
end

#gollumObject (readonly)

Returns the value of attribute gollum.



6
7
8
# File 'lib/caramelize/health_checks/orphaned_pages_check.rb', line 6

def gollum
  @gollum
end

#intra_wiki_pathsObject (readonly)

Returns the value of attribute intra_wiki_paths.



6
7
8
# File 'lib/caramelize/health_checks/orphaned_pages_check.rb', line 6

def intra_wiki_paths
  @intra_wiki_paths
end

Instance Method Details

#checkObject



14
15
16
17
# File 'lib/caramelize/health_checks/orphaned_pages_check.rb', line 14

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