View Source Mix.Secrex (Secrex v0.4.0)
Utility functions to work with secret files.
Link to this section Summary
Functions
Checks if the local decrypted files are in sync with the encrypted ones.
Link to this section Functions
@spec secret_files_changed?() :: boolean()
Checks if the local decrypted files are in sync with the encrypted ones.
This could be useful in deployment process. For instance, to abort deployment if secrets diverge:
if Mix.Secrex.secret_files_changed?() do
Mix.raise(
"Secret files are not in sync. Please run \"mix secrex.decrypt\" to retrieve latest updates."
)
end