TimedConfig =========== Starts a thread that loads a YAML config every X minutes Requirements ------------
gem install timed_config
Install ------- ### Rails 2 #### config/environment.rb
config.gem 'acts_as_archive'
### Rails 3 #### Gemfile
gem 'acts_as_archive'
### Other
require 'acts_as_archive'
Starts by default ----------------- TimedConfig will start automatically when you require it. If you are using Rails, it will try to find the config in config/timed_config.yml. By default, the refresh period is set to 1 minute. Accessing the config --------------------
TimedConfig.config
Changing defaults -----------------
TimedConfig.period = 120 # change period to two minutes
TimedConfig.path = "path/to/yaml.yml"
The config will reload any time one of these settings change.