Import YAML file content as ENV in ruby

Viewed 21

Working on Ruby Rspec Capybara project. I have different env like

sample yml file

dev:
  url: google.com
  user: dev_user
  password: dev_password
test:
  url: google.com
  user: test_user
  password: test_password

Think yml would help here. Is it possible to parse yaml file and store it as ENV variable so that it is available across the project in Ruby

this is purely ruby project. how can we do it without rails credentials

1 Answers
Related