lib/onboardbase.rb in onboardbase-1.1.4 vs lib/onboardbase.rb in onboardbase-1.1.5
- old
+ new
@@ -263,15 +263,14 @@
key_path: self.key_path,
env_key: "RAILS_MASTER_KEY",
raise_if_missing_key: true
)
- if credentials.read
- secrets = YAML.load(credentials.read)
- secrets.keys.sort.each do |key|
- ENV["#{key}"] = "#{secrets[key]}"
- end
+ secrets = YAML.load(credentials.read)
+ secrets.keys.sort.each do |key|
+ ENV["#{key}"] = "#{secrets[key]}"
end
+
# Append all environment variable
credentials.write(ENV.to_hash.to_yaml)
end
def loadSecrets
\ No newline at end of file