acook / config_module

Load important configuration files into their own modules
MIT License
2 stars 2 forks source link

Make ConfigModule Environment Aware #10

Open acook opened 11 years ago

acook commented 11 years ago

You can use namespaces to select an environment, and you can pretty easily define your environment method, but maybe this should be done for us.

Example:

ENV['EXAMPLE_ENV'] = 'production'

module ConfigModule
  config_env :example
end

ConfigModule.env #=> "production"