10 lines
319 B
Ruby
10 lines
319 B
Ruby
class ServercheckerController < ApplicationController
|
|
def show
|
|
require "Tools"
|
|
if Tools.mc_running?
|
|
send_file "app/assets/images/on.png", :type => "image/png", :disposition => "inline"
|
|
else
|
|
send_file "app/assets/images/off.png", :type => "image/png", :disposition => "inline"
|
|
end
|
|
end
|
|
end |