heroku / heroku.rb

DEPRECATED! Official Heroku Ruby Legacy API wrapper
161 stars 41 forks source link

Differentiate config variables #63

Closed chtrinh closed 11 years ago

chtrinh commented 11 years ago

Is there a way to differentiate config variables, addon/heroku/app defined?

Here my use case for this: List of config variables that are source controlled and needs to be applied during deploy. This works when I need to update/add config variables. But when I delete I need to some how get a delta, without mistakenly removing addon and heroku defined ones.

geemus commented 11 years ago

@chtrinh - I don't believe there is currently a way to get this information from the API. As a stopgap, you might consider prefixing your own keys with a known value so that they are easier to pick out. Otherwise you could perhaps include a list of keys to ignore matching the known heroku/add-on values (as these should not change often). Sorry I can't offer you a better solution directly, but I'm certainly happy to answer any other questions you might have.

chtrinh commented 11 years ago

The prefixing idea sounds interesting, I'll try that. Thanks!