Sha256: 81a98400689423aabae9e13afedb7a4f7cd6a692009472bd7403cc5af2155695
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
module FitterHappier class HeartbeatController < ActionController::Base layout nil around_action :process_with_silence def index render(:plain => "FitterHappier Site Check Passed\n") end def site_check time = Time.now.to_formatted_s(:rfc822) render(:plain => "FitterHappier Site Check Passed @ #{time}\n") end 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 private def process_with_silence(*args) logger.silence do yield *args end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nulogy-fitter-happier-1.0.0 | app/controllers/fitter_happier/heartbeat_controller.rb |