public
Description: Rails configuration management plugin by Wonsys S.r.l.
Homepage:
Clone URL: git://github.com/wonsys/configuration_manager.git
name age message
file .gitignore Sun May 18 10:18:18 -0700 2008 Added .gitignore git-svn-id: https://wonsys.g... [flydown]
file MIT-LICENSE Thu Jan 10 02:09:17 -0800 2008 Initial import of configuration_manager git-sv... [flydown]
file README Thu May 29 09:19:43 -0700 2008 Added installation instructions and link to bug... [michele]
file Rakefile Thu Jan 10 02:09:17 -0800 2008 Initial import of configuration_manager git-sv... [flydown]
file init.rb Thu Jan 10 02:09:17 -0800 2008 Initial import of configuration_manager git-sv... [flydown]
file install.rb Thu Jan 10 02:09:17 -0800 2008 Initial import of configuration_manager git-sv... [flydown]
directory lib/ Thu May 29 09:20:21 -0700 2008 It should use RAILS_ENV instead of ENV['RAILS_E... [michele]
directory tasks/ Thu Jan 10 02:09:17 -0800 2008 Initial import of configuration_manager git-sv... [flydown]
directory test/ Thu Jan 10 02:09:17 -0800 2008 Initial import of configuration_manager git-sv... [flydown]
file uninstall.rb Thu Jan 10 02:09:17 -0800 2008 Initial import of configuration_manager git-sv... [flydown]
README
ConfigurationManager
====================

Allows you to easily manage your app's configuration by using a YAML file to
store the configuration while accessing it from a class-like interface.

Inspiration taken from Peepcode's Rails Code Review:
http://peepcode.com/products/draft-rails-code-review-pdf

Install the plugin:
  script/plugin install http://wonsys.googlecode.com/svn/plugins/configuration_manager/

Bug tracker: http://wonsysos.16bugs.com/

Example
=======

File: config/configuration_manager.yml

everyone: &every_env
  key1: value1
  inner_hash:
    key2: value2
    
development: &non_production_env
  <<: *every_env
  key3: value3
  
test:
  <<: *non_production_env

production:
  <<: *every_env
  key4: value4

config/environment.rb

[SNIP]
MyConfig = ConfigurationManager.new_manager

Then use it like this:

MyConfig.key1 #=> value1
MyConfig.inner_hash.key2 #=> value2


Copyright (c) 2008 Wonsys S.r.l., released under the MIT license