Class: Lesli::AboutsController
- Inherits:
-
ApplicationLesliController
- Object
- ActionController::Base
- ApplicationController
- ApplicationLesliController
- Lesli::AboutsController
- Defined in:
- app/controllers/lesli/abouts_controller.rb
Instance Attribute Summary
Attributes inherited from ApplicationController
Instance Method Summary collapse
-
#show ⇒ Object
GET /status.
- #up ⇒ Object
- #welcome ⇒ Object
Methods inherited from ApplicationLesliController
Methods included from CustomizationInterface
Methods included from ResponderInterface
#respond_with_action, #respond_with_http, #respond_with_json, #respond_with_json_not_found, #respond_with_json_unauthorized, #respond_with_lesli, #respond_with_not_found, #respond_with_pagination, #respond_with_unauthorized, #stream_redirection
Methods included from RequesterInterface
Methods inherited from ApplicationController
Constructor Details
This class inherits a constructor from Lesli::ApplicationController
Instance Method Details
#show ⇒ Object
GET /status
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'app/controllers/lesli/abouts_controller.rb', line 49 def show respond_to do |format| format.html {} format.json do lesli_engines = ::LesliSystem.engines.map do |engine, engine_info| { :name => engine_info[:name], :code => engine_info[:code], :path => engine_info[:path], :build => engine_info[:build], :version => engine_info[:version], :description => engine_info[:description] } end respond_with_json(lesli_engines) end end end |
#up ⇒ Object
44 45 46 |
# File 'app/controllers/lesli/abouts_controller.rb', line 44 def up # renders the health check page end |
#welcome ⇒ Object
40 41 42 |
# File 'app/controllers/lesli/abouts_controller.rb', line 40 def welcome # renders the welcome page end |