require 'yaml' module Secrets def self.load return nil unless File.exist?("./config/application.yml") secrets = YAML.load(File.read('./config/application.yml')) secrets.each do |k, v| ENV[k] = v end end end