Module Raemon::Configuration
In: lib/raemon/configuration.rb

Manages configuration settings and defaults

Methods

logger   logger=   option   root   root=  

Constants

DEFAULT_SERVER_NAME = 'Raemon'
DEFAULT_DETACH = false
DEFAULT_NUM_WORKERS = 1
DEFAULT_TIMEOUT = 3 * 60
DEFAULT_MEMORY_LIMIT_IN_MEGABYTES = 50
DEFAULT_ENVIRONMENT = 'development'
DEFAULT_LOG_LEVEL = :info
DEFAULT_INSTRUMENTOR_NAME = 'raemon'

Attributes

settings  [RW] 

Public Instance methods

@return [logger] The logger used by this library

@param [Logger] logger Some logger to use with this library

Define a configuration option with a default.

@example Define the option.

  Config.option(:server_name, default: "Raemon")

@param [Symbol] name The name of the configuration option

@param [Hash] options Extras for the option

@note Copied from Mongoid. Thank you!

@private

@return [Pathname] the root path for this application

@param [String] root The root path for this application

[Validate]