Module: Rack::Handler::Reifier
- Defined in:
- lib/rack/handler/reifier.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ MinThreads: 0, MaxThreads: 16 }.freeze
Class Method Summary collapse
Class Method Details
.run(app, options = {}) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/rack/handler/reifier.rb', line 12 def self.run(app, = {}) = DEFAULT_OPTIONS.merge() puts "======= Reifier #{::Reifier::VERSION} starting =======" server = ::Reifier::Server.new(app, ) server.load_configuration server.start end |
.valid_options ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/rack/handler/reifier.rb', line 20 def self. { 'MinThreads=MINTHREADS' => 'Number of minimal threads (default: 0)', 'MaxThreads=MAXTHREADS' => 'Number of minimal threads (default: 16)', 'Workers=WORKERS' => 'Number of workers (default: none)' } end |