Class: Herdis::Handlers::Ping

Inherits:
Goliath::API
  • Object
show all
Includes:
Common
Defined in:
lib/herdis/handlers/ping.rb

Instance Method Summary collapse

Methods included from Common

included

Instance Method Details

#response(env) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/herdis/handlers/ping.rb', line 9

def response(env)
  if Herdis::Plugins::ShepherdConnection.shepherd.nil?
    [404, {}, ""]
  else
    [Herdis::Plugins::ShepherdConnection.shepherd.status, {}, ""]
  end
end