Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6f698319b3
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.551 kb
# bundle exec shotgun -p PORT config.ru
require 'rubygems'
require 'bundler/setup'
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'hancock'))
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'spec', 'helpers', 'app'))
class MyAuthenticatedUser
def self.authenticated?(username, password)
username == 'atmos' && password == 'hancock'
end
end
Hancock::User.authentication_class = MyAuthenticatedUser
use Rack::Static, :urls => ["/css", "/img"], :root => "public"
run Hancock::TestApp.app
Jump to Line
Something went wrong with that request. Please try again.