-
-
Notifications
You must be signed in to change notification settings - Fork 25
Accessing Settings
Jeff Felchner edited this page Jan 8, 2018
·
7 revisions
Once Chamber loads your settings from your YAML files, you will
have access to those settings through the Chamber
class.
Example:
Given a settings.yml
file containing:
smtp:
server: "example.com"
username: "my_user"
password: "my_pass"
can be accessed as follows:
Chamber[:smtp][:server]
# => example.com
or via object notation syntax:
Chamber.env.smtp.server
# => example.com
Note: The entirety of the Wiki will use object notation for consistency.
Copyright ©2023
- Release News
- Gem Comparison
- 12-Factor App Rebuttal
- Environment Variable Problems
- Installation
- Basics
- Defining Settings
- Accessing Settings
- Verifying Settings
- Namespaces
- Environment Variables
- Integrations
- Encryption
- Advanced Usage
- Command Line Reference