resque auth example

This commit is contained in:
randx 2012-06-21 17:23:51 +03:00
parent 2d16585eae
commit ed247b3893

View file

@ -0,0 +1,5 @@
require 'resque/server'
Resque::Server.use(Rack::Auth::Basic) do |user, password|
user == "gitlab"
password == "5iveL!fe"
end