Class: Flare::Util::FlaredConf

Inherits:
Conf
  • Object
show all
Defined in:
lib/flare/util/flared_conf.rb

Constant Summary collapse

DefaultConf =
{
  'data-dir' => "/tmp",
  'index-server-name' => "localhost",
  'index-server-port' => "12120",
  'log-facility' => "local1",
  'max-connection' => "256",
  'mutex-slot' => "32",
  'proxy-concurrency' => "2",
  'server-name' => "localhost",
  'server-port' => "12121",
  'storage-type' => "tch",
  'thread-pool-size' => "16",
}

Instance Method Summary collapse

Methods inherited from Conf

#data_dir, #each, #hostname_port, #server_name, #server_port, #to_s

Constructor Details

#initialize(config) ⇒ FlaredConf

Returns a new instance of FlaredConf.



26
27
28
# File 'lib/flare/util/flared_conf.rb', line 26

def initialize(config)
  @config = DefaultConf.merge(config)
end