Class: RailsPing::PingController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- RailsPing::PingController
- Defined in:
- app/controllers/rails_ping/ping_controller.rb
Instance Method Summary collapse
Instance Method Details
#ping ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/rails_ping/ping_controller.rb', line 4 def ping map = { hostname: Socket.gethostname, revision: ENV['HEROKU_SLUG_COMMIT'], version: ENV['HEROKU_RELEASE_VERSION'], created_at: ENV['HEROKU_RELEASE_CREATED_AT'], application: ENV['HEROKU_APP_NAME'], current_time: Time.current } render json: map end |