In my settings.yml file I have several config vars, some of which reference ENV[] variables.
for example I have ENV[\'FOOVAR\'] equals WIDGET
I thought I cou
I was able to resolve this with simple code
data = {}
YAML.load_file("path_of_file/settings.yml").each do |key, value|
data[key] = ENV[value] || value
end
where my data was something like this
account: ACCOUNT_USERNAME
password: ACCOUNT_PASSWORD
port: 5002
and ACCOUNT_USERNAME
and ACCOUNT_PASSWORD
are environment variables