Created
July 8, 2011 00:55
-
-
Save treeder/1070883 to your computer and use it in GitHub Desktop.
Sample configuration gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| database: | |
| adapter: mysql2 | |
| host: x.y.com | |
| database: whatever | |
| username: something | |
| password: something else | |
| simpleworker: | |
| access_key: mykey | |
| secret_key: secret | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'open-uri' | |
| @private_config = YAML.load_file('config/private.yml') | |
| if @private_config['yml_url'] | |
| @private_config = YAML.load(open(@private_config['yml_url'])) | |
| end | |
| p @private_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yml_url: https://raw.github.com/gist/1070883/config.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment