Skip to content
This repository was archived by the owner on Jul 27, 2020. It is now read-only.

Conversation

@pda
Copy link
Contributor

@pda pda commented Mar 16, 2013

This allows dynamic configuration files, and is in line with how Rails
preprocesses database.yml as ERB.

A primary use-case is configuration lines like:

---
some_service:
  api_token: <%= ENV["SOME_SERVICE_API_TOKEN"] %>

This allows dynamic configuration files, and is in line
with how Rails preprocesses database.yml as ERB.

A primary use-case is configuration lines like:

   some_service:
     api_token: <%= ENV["SOME_SERVICE_API_TOKEN"] %>
@bjeanes
Copy link

bjeanes commented Mar 16, 2013

This is fantastic. I wanted this for SquareSquash/web#57 too. This is great because it doesn't change existing behavior or usage in the slightest, but opens up pulling in configs from anywhere else when needed. Also, since this is a configuration gem specifically for Rails, it brings it more inline with how Rails loads database.yml already.

RISCfuture added a commit that referenced this pull request Apr 19, 2013
Preprocess YAML files as ERB.
@RISCfuture RISCfuture merged commit 41543d3 into RISCfuture:master Apr 19, 2013
@pda
Copy link
Contributor Author

pda commented Apr 19, 2013

Nice, thanks for merging this in.

@bjeanes
Copy link

bjeanes commented Apr 19, 2013

👏

@pda pda deleted the erb-preprocessor branch April 19, 2013 00:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants