Sha256: 5f17d2ed95ee104696c3f9b4cfa9752952a20b405957f6cf8466e70d7fd30b56

Contents?: true

Size: 801 Bytes

Versions: 1

Compression:

Stored size: 801 Bytes

Contents

TimedConfig
===========

Load a YAML config every X minutes

Requirements
------------

<pre>
gem install timed_config
</pre>

Install
-------

### Rails 2

#### config/environment.rb

<pre>
config.gem 'timed_config'
</pre>

### Rails 3

#### Gemfile

<pre>
gem 'timed_config'
</pre>

### Other

<pre>
require 'timed_config'
</pre>

Defaults
--------

If you are using Rails, <code>TimedConfig</code> will try to locate the YAML config at <code>config/timed_config.yml</code>.

By default, the refresh period is set to 1 minute.

Changing defaults
-----------------

<pre>
TimedConfig.period = 120 # change period to two minutes
TimedConfig.path = "path/to/yaml.yml"
</pre>

The config will reload any time a setting changes.

Accessing the config
--------------------

<pre>
TimedConfig.config
</pre>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timed_config-0.1.1 README.md