Method: Thin::Runner#initialize

Defined in:
lib/thin/runner.rb

#initialize(argv) ⇒ Runner

Returns a new instance of Runner.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/thin/runner.rb', line 30

def initialize(argv)
  @argv = argv
  
  # Default options values
  @options = {
    :chdir                => Dir.pwd,
    :environment          => 'development',
    :address              => '0.0.0.0',
    :port                 => Server::DEFAULT_PORT,
    :timeout              => Server::DEFAULT_TIMEOUT,
    :log                  => 'log/thin.log',
    :pid                  => 'tmp/pids/thin.pid',
    :max_conns            => Server::DEFAULT_MAXIMUM_CONNECTIONS,
    :max_persistent_conns => Server::DEFAULT_MAXIMUM_PERSISTENT_CONNECTIONS,
    :require              => []
  }
  
  parse!
end