Module: Roda::RodaPlugins::Heartbeat::InstanceMethods

Defined in:
lib/roda/plugins/heartbeat.rb

Instance Method Summary collapse

Instance Method Details

#callObject

If the request is for a heartbeat path, return the heartbeat response.



28
29
30
31
32
33
34
35
36
# File 'lib/roda/plugins/heartbeat.rb', line 28

def call
  if env[PATH_INFO] == opts[:heartbeat_path]
    response = HEARTBEAT_RESPONSE.dup
    response[1] = Hash[response[1]]
    response
  else
    super
  end
end