Class: Lesli::AboutsController

Inherits:
ApplicationLesliController show all
Defined in:
app/controllers/lesli/abouts_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#engine_path, #query

Instance Method Summary collapse

Methods inherited from ApplicationLesliController

#log

Methods included from CustomizationInterface

#set_customizer

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

#set_locale, #set_requester

Methods inherited from ApplicationController

#initialize

Constructor Details

This class inherits a constructor from Lesli::ApplicationController

Instance Method Details

#showObject

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

#upObject



44
45
46
# File 'app/controllers/lesli/abouts_controller.rb', line 44

def up 
    # renders the health check page
end

#welcomeObject



40
41
42
# File 'app/controllers/lesli/abouts_controller.rb', line 40

def welcome 
    # renders the welcome page 
end