Function ansible_vault::encrypt_vault_from_file [−][src]
pub fn encrypt_vault_from_file<P: AsRef<Path>>(
path: P,
key: &str
) -> Result<String, VaultError>
Encrypt a file to an ansible_vault string
A wrapper for encrypt_vault method.
Arguments:
path
: the path to the file to encryptkey
: the key to encrypt the file