Is it possible to interpolating variables in YAML files?

I’m attempting to store a value that’s dependent on an environment
variable in a custom .yml file, like so:

job_folder: “#{RAILS_ROOT}/jobs”

Doesn’t seem to like that. Is there any way for me to have access to
the RAILS_ROOT environment variable from inside of my configuration
file?

Thanks,
Wes

Did you try:

job_folder: <%= ENV[‘RAILS_ROOT’] %>/jobs

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs