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, options = {})
  options = DEFAULT_OPTIONS.merge(options)
  puts "======= Reifier #{::Reifier::VERSION} starting ======="
  server = ::Reifier::Server.new(app, options)
  server.load_configuration
  server.start
end

.valid_optionsObject



20
21
22
23
24
25
26
# File 'lib/rack/handler/reifier.rb', line 20

def self.valid_options
  {
    'MinThreads=MINTHREADS' => 'Number of minimal threads (default: 0)',
    'MaxThreads=MAXTHREADS' => 'Number of minimal threads (default: 16)',
    'Workers=WORKERS'       => 'Number of workers (default: none)'
  }
end