Created
October 1, 2025 22:07
-
-
Save noelworden/a98024526706d223c32de0f28332fa86 to your computer and use it in GitHub Desktop.
Revisions
-
noelworden created this gist
Oct 1, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ defp set_other_secret(_) do original_secret = Application.get_env(:my_app, MyApp.Example)[:other_secret] hash = fake_hash() Application.put_env(:my_app, MyApp.Example, other_secret: hash) on_exit(fn -> Application.put_env(:my_app, MyApp.Example, other_secret: original_secret) end) {:ok, other_secret: hash} end