Sha256: ade30cec0d4efdb0e44b0cec7afe577d66e0fbdd884b9ffaab859a0a0e4beb65
Contents?: true
Size: 571 Bytes
Versions: 5
Compression:
Stored size: 571 Bytes
Contents
require 'sekrets' module Harmony module Service module Utils class Secrets def self.load sekrets_file_path = './config/settings.yml.enc' if File.exist?(sekrets_file_path) env = ENV['HARMONY_ENV'] abort "ENV['HARMONY_ENV'] must be set." unless env puts "Reading secrets from #{sekrets_file_path}" secrets = Sekrets.settings_for(sekrets_file_path)[env] secrets.each_pair{|k,v| ENV[k] = v.to_s } end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems