2potatocakes/google_storage — pull request #7 by wenzowski (2012-10-29 23:45:16+00:00)
Title: preprocess yaml through erb to allow for environment variable config

Allows yaml config file to be shared publicly by extracting sensitive data into environment variables, eg.

google_config:
x-goog-project-id: <%= ENV['GOOGLE_PROJECT_ID'] %>
web_applications:
client_id: <%= ENV['GOOGLE_CLIENT_ID'] %>
client_secret: <%= ENV['GOOGLE_CLIENT_SECRET'] %>
redirect_uris: <%= ENV['GOOGLE_REDIRECT_URIS'] %>
js_origins: <%= ENV['GOOGLE_JS_ORIGINS'] %>
refresh_token: <%= ENV['GOOGLE_REFRESH_TOKEN'] %>