Module: Cargobull
- Defined in:
- lib/cargobull.rb,
lib/cargobull/env.rb,
lib/cargobull/rackup.rb,
lib/cargobull/service.rb,
lib/cargobull/dispatch.rb,
lib/cargobull/initialize.rb,
lib/cargobull/test_helper.rb
Defined Under Namespace
Modules: Dispatch, Env, Initialize, Rackup, Service, TestHelper
Class Method Summary
collapse
Class Method Details
.env ⇒ Object
3
4
5
|
# File 'lib/cargobull/env.rb', line 3
def self.env
Env
end
|
.runner(cargoenv = env.get) ⇒ Object
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/cargobull.rb', line 8
def self.runner(cargoenv=env.get)
->(env) do
cenv = cargoenv.dup
cenv[:rackenv] = env
cenv[:request_path] = env["REQUEST_PATH"]
cenv[:request_method] = env["REQUEST_METHOD"]
cenv.freeze
Rackup.call(cenv)
end
end
|