Class: FitterHappier::HeartbeatController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/fitter_happier/heartbeat_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
# File 'app/controllers/fitter_happier/heartbeat_controller.rb', line 7

def index
  render plain: "FitterHappier Site Check Passed\n"
end

#site_and_database_checkObject



17
18
19
20
21
22
# File 'app/controllers/fitter_happier/heartbeat_controller.rb', line 17

def site_and_database_check
  version = DatabaseCheck.schema_version
  time = Time.now.to_formatted_s(:rfc822)

  render plain: "FitterHappier Site and Database Check Passed @ #{time}\nSchema Version: #{version}\n"
end

#site_checkObject



11
12
13
14
15
# File 'app/controllers/fitter_happier/heartbeat_controller.rb', line 11

def site_check
  time = Time.now.to_formatted_s(:rfc822)

  render plain: "FitterHappier Site Check Passed @ #{time}\n"
end