mix secret_mana.encrypt (secret_mana v0.2.1)
View SourceEncrypts a file using SecretMana for the given environment.
Usage
mix secret_mana.encrypt <env> <file>Where:
<env>is typically one of:- dev
- test
- prod
<file>is the path to the file you want to encrypt.
The task will:
- Ensure the
:secret_manaapplication is started. - Build a
SecretMana.Configfor the given environment. - Invoke
SecretMana.encrypt/2with the config and file path.
Examples
mix secret_mana.encrypt dev config/secrets.yml
mix secret_mana.encrypt prod priv/secrets.jsonGetting help
You can show this help via:
mix help secret_mana.encryptOr by using:
mix secret_mana.encrypt --help
mix secret_mana.encrypt -h