README.md in rock_config-0.0.1 vs README.md in rock_config-0.0.2
- old
+ new
@@ -28,16 +28,16 @@
host: 192.168.1.10
port: 9200
RockConfig allows you to read these settings with an API like this:
- elastic_config = RockConfig.for :elastic_search
+ elastic_config = RockConfig.for "elastic_search"
elastic_config.host # > 127.0.0.1
RockConfig automatically chooses the current application environment. You select the environment yourself
with:
- RockConfig.for :elastic_search, :production
+ RockConfig.for "elastic_search", "production"
RockConfig scans predefined directories for config files. By default, it tries to scan directory
`config` in the project root. You can add more directories:
RockConfig.configure do |config|