Package org.kiwiproject.ansible.vault
Class VaultEncryptCommand
java.lang.Object
org.kiwiproject.ansible.vault.VaultEncryptCommand
- All Implemented Interfaces:
OsCommand
Generates
ansible-vault encrypt commands.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static VaultEncryptCommandfrom(VaultConfiguration configuration, @Nullable String vaultIdLabel, String plainTextFilePath) Create an instance.static VaultEncryptCommandfrom(VaultConfiguration configuration, String plainTextFilePath) Create an instance.parts()Returns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kiwiproject.base.process.OsCommand
partsAsArray
-
Method Details
-
from
Create an instance.- Parameters:
configuration- theVaultConfigurationto useplainTextFilePath- path to the plain text file to encrypt- Returns:
- the command
-
from
public static VaultEncryptCommand from(VaultConfiguration configuration, @Nullable String vaultIdLabel, String plainTextFilePath) Create an instance.- Parameters:
configuration- theVaultConfigurationto usevaultIdLabel- the label of the vault (for use with the--vault-idargumentplainTextFilePath- path to the plain text file to encrypt- Returns:
- the command
-
parts
Description copied from interface:OsCommandReturns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder. -
builder
-