12 lines
234 B
Ruby
12 lines
234 B
Ruby
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
|