Module: Roda::RodaPlugins::Heartbeat::InstanceMethods
- Defined in:
- lib/roda/plugins/heartbeat.rb
Instance Method Summary collapse
-
#call ⇒ Object
If the request is for a heartbeat path, return the heartbeat response.
Instance Method Details
#call ⇒ Object
If the request is for a heartbeat path, return the heartbeat response.
31 32 33 34 35 36 37 38 39 |
# File 'lib/roda/plugins/heartbeat.rb', line 31 def call if env['PATH_INFO'] == opts[:heartbeat_path] response = HEARTBEAT_RESPONSE.dup response[1] = Hash[response[1]] response else super end end |