travis-web/waiter/app.rb
2016-04-13 17:45:17 +02:00

12 lines
238 B
Ruby

require 'sinatra'
require 'redis'
get '/' do
content_type 'text/html'
redis = Redis.new
project = 'travis'
index_key = params[:index_key] || redis.get("#{project}:index:current")
redis.get("#{project}:index:#{index_key}")
end