rosa-build/lib/grack/handler.rb

17 lines
262 B
Ruby
Raw Normal View History

module Grack
class Handler < Base
def initialize(app, config)
@app = app
@config = config
end
def call(env)
if git?(env)
::GitHttp::App.new(@config).call(env)
else
@app.call(env)
end
end
end
end