Package org.kiwiproject.ansible.vault
Class VaultEncryptStringCommand
java.lang.Object
org.kiwiproject.ansible.vault.VaultEncryptStringCommand
- All Implemented Interfaces:
OsCommand
Generates
ansible-vault encrypt_string commands.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static VaultEncryptStringCommandfrom(VaultConfiguration configuration, @Nullable String vaultIdLabel, String plainText, String variableName) Create an instance.static VaultEncryptStringCommandfrom(VaultConfiguration configuration, String plainText, String variableName) 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
public static VaultEncryptStringCommand from(VaultConfiguration configuration, String plainText, String variableName) Create an instance.- Parameters:
configuration- theVaultConfigurationto useplainText- the plain text to encryptvariableName- the name of the variable- Returns:
- the command
-
from
public static VaultEncryptStringCommand from(VaultConfiguration configuration, @Nullable String vaultIdLabel, String plainText, String variableName) Create an instance.- Parameters:
configuration- theVaultConfigurationto usevaultIdLabel- the label of the vault (for use with the--vault-idargumentplainText- the plain text to encryptvariableName- the name of the variable- 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
-