Package org.kiwiproject.ansible.vault
Class VaultDecryptCommand
- java.lang.Object
-
- org.kiwiproject.ansible.vault.VaultDecryptCommand
-
-
Field Summary
Fields Modifier and Type Field Description static StringOUTPUT_FILE_STDOUT
-
Constructor Summary
Constructors Constructor Description VaultDecryptCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VaultDecryptCommandfrom(VaultConfiguration configuration, String encryptedFilePath)Create an instance.static VaultDecryptCommandfrom(VaultConfiguration configuration, String encryptedFilePath, String outputFilePath)List<String>getCommandParts()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.
-
-
-
Field Detail
-
OUTPUT_FILE_STDOUT
public static final String OUTPUT_FILE_STDOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
from
public static VaultDecryptCommand from(VaultConfiguration configuration, String encryptedFilePath)
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
-
getCommandParts
public List<String> getCommandParts()
Description copied from interface:OsCommandReturns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder.- Specified by:
getCommandPartsin interfaceOsCommand- Returns:
- a list of command arguments
- See Also:
ProcessBuilder(List)
-
-