Configatron is a new Ruby library that makes it easy to have persistently accessible configuration data available through your Ruby application. It bears some similarities to the Rails pluginSimpleConfig, but being distributed as a gem, is suitable for non-Rails applications. To install: gem install configatron
Once configatron is installed, the following code will get things going:
configatron do |config| config.app_name = "My Awesomely Jazzy App" config.database_url = "postgres://localhost/somedb" # etc... end
No comments yet.
You must be logged in to add your own comment.