wonsys / configuration_manager

Rails configuration management plugin by Wonsys S.r.l.

This URL has Read+Write access

b1f836e3 » flydown 2008-01-10 Initial import of configura... 1 ConfigurationManager
2 ====================
3
4 Allows you to easily manage your app's configuration by using a YAML file to
5 store the configuration while accessing it from a class-like interface.
6
a227a676 » flydown 2008-05-29 Added credits 7 Inspiration taken from Peepcode's Rails Code Review:
8 http://peepcode.com/products/draft-rails-code-review-pdf
9
aad8aca1 » michele 2008-05-29 Added installation instruct... 10 Install the plugin:
11 script/plugin install http://wonsys.googlecode.com/svn/plugins/configuration_manager/
12
13 Bug tracker: http://wonsysos.16bugs.com/
14
b1f836e3 » flydown 2008-01-10 Initial import of configura... 15 Example
16 =======
17
aad8aca1 » michele 2008-05-29 Added installation instruct... 18 File: config/configuration_manager.yml
b1f836e3 » flydown 2008-01-10 Initial import of configura... 19
20 everyone: &every_env
21 key1: value1
22 inner_hash:
23 key2: value2
24
25 development: &non_production_env
26 <<: *every_env
27 key3: value3
28
29 test:
30 <<: *non_production_env
31
32 production:
33 <<: *every_env
34 key4: value4
35
36 config/environment.rb
37
38 [SNIP]
39 MyConfig = ConfigurationManager.new_manager
40
41 Then use it like this:
42
43 MyConfig.key1 #=> value1
44 MyConfig.inner_hash.key2 #=> value2
45
46
47 Copyright (c) 2008 Wonsys S.r.l., released under the MIT license