Class: Caramelize::HealthChecks::HomePageCheck

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gollum) ⇒ HomePageCheck

Returns a new instance of HomePageCheck.



8
9
10
# File 'lib/caramelize/health_checks/home_page_check.rb', line 8

def initialize(gollum)
  @gollum = gollum
end

Instance Attribute Details

#gollumObject (readonly)

Returns the value of attribute gollum.



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

def gollum
  @gollum
end

Instance Method Details

#checkObject



12
13
14
# File 'lib/caramelize/health_checks/home_page_check.rb', line 12

def check
  puts 'Home.md missing' unless has_home_page?
end