first crack at system status app
This commit is contained in:
parent
be93849c02
commit
6b5ccdcc16
@ -1,5 +1,7 @@
|
|||||||
class StatusController < ApplicationController
|
class StatusController < ApplicationController
|
||||||
def index
|
def index
|
||||||
|
time = Time.now
|
||||||
|
@time = time
|
||||||
|
@ps = `ps aux`
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<h1>Status#index</h1>
|
<h1>Processes running at <%= @time %></h1>
|
||||||
<p>Find me in app/views/status/index.html.erb</p>
|
<pre><%= @ps %></pre>
|
||||||
|
@ -56,5 +56,5 @@ Status::Application.routes.draw do
|
|||||||
|
|
||||||
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
||||||
# Note: This route will make all actions in every controller accessible via GET requests.
|
# Note: This route will make all actions in every controller accessible via GET requests.
|
||||||
# match ':controller(/:action(/:id(.:format)))'
|
match ':controller(/:action(/:id(.:format)))'
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user