Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 688 Bytes
#-----------------------------------------------------------------------
#-*- vim: set ft=ruby: -*-
#
# Example repository for serving up a Mirror repository. This repo
# will respond to mirroring requests and mirror gems from a remote
# repository locally.
#-----------------------------------------------------------------------
$:.unshift File.expand_path( File.join( File.dirname(__FILE__), "..", "lib" ) )
require 'stickler/middleware/compression'
require 'stickler/middleware/mirror'
gem_dir = File.join( File.expand_path( File.dirname( __FILE__ ) ), "tmp" )
use ::Stickler::Middleware::Compression
use ::Stickler::Middleware::Mirror, :repo_root => gem_dir
run ::Sinatra::Base
Something went wrong with that request. Please try again.