Skip to content

Instantly share code, notes, and snippets.

@treeder
Created July 8, 2011 00:55
Show Gist options
  • Save treeder/1070883 to your computer and use it in GitHub Desktop.
Save treeder/1070883 to your computer and use it in GitHub Desktop.
Sample configuration gist
database:
adapter: mysql2
host: x.y.com
database: whatever
username: something
password: something else
simpleworker:
access_key: mykey
secret_key: secret
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
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