Class: Caramelize::HealthChecks::OrphanedPagesCheck
- Inherits:
-
Object
- Object
- Caramelize::HealthChecks::OrphanedPagesCheck
- Defined in:
- lib/caramelize/health_checks/orphaned_pages_check.rb
Instance Attribute Summary collapse
-
#all_intra_wiki_paths ⇒ Object
readonly
Returns the value of attribute all_intra_wiki_paths.
-
#gollum ⇒ Object
readonly
Returns the value of attribute gollum.
-
#intra_wiki_paths ⇒ Object
readonly
Returns the value of attribute intra_wiki_paths.
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(gollum) ⇒ OrphanedPagesCheck
constructor
A new instance of OrphanedPagesCheck.
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_paths ⇒ Object (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 |
#gollum ⇒ Object (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_paths ⇒ Object (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
#check ⇒ Object
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 |