sms-pager/lib/secrets.rb

12 lines
234 B
Ruby
Raw Normal View History

2015-09-12 15:37:05 -05:00
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