Package org.kiwiproject.ansible.vault
Class VaultDecryptCommand
java.lang.Object
org.kiwiproject.ansible.vault.VaultDecryptCommand
- All Implemented Interfaces:
OsCommand
Generates
ansible-vault decrypt commands.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static VaultDecryptCommandfrom(VaultConfiguration configuration, String encryptedFilePath) Create an instance.static VaultDecryptCommandfrom(VaultConfiguration configuration, String encryptedFilePath, @Nullable String outputFilePath) parts()Returns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder.static VaultDecryptCommandtoStdoutFrom(VaultConfiguration configuration, String encryptedFilePath) Create an instance.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
-
Field Details
-
OUTPUT_FILE_STDOUT
- See Also:
-
-
Method Details
-
from
Create an instance.- Parameters:
configuration- theVaultConfigurationto useencryptedFilePath- path to the encrypted file- Returns:
- the command
-
toStdoutFrom
public static VaultDecryptCommand toStdoutFrom(VaultConfiguration configuration, String encryptedFilePath) Create an instance.- Parameters:
configuration- theVaultConfigurationto useencryptedFilePath- path to the encrypted file- Returns:
- the command
-
from
public static VaultDecryptCommand from(VaultConfiguration configuration, String encryptedFilePath, @Nullable String outputFilePath) - Parameters:
configuration- theVaultConfigurationto useencryptedFilePath- path to the encrypted fileoutputFilePath- path of the file where the decrypted output should be stored- 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
-