Package org.kiwiproject.ansible.vault
Class VaultRekeyCommand
- java.lang.Object
-
- org.kiwiproject.ansible.vault.VaultRekeyCommand
-
-
Constructor Summary
Constructors Constructor Description VaultRekeyCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VaultRekeyCommandfrom(VaultConfiguration configuration, String encryptedFilePath, String newVaultPasswordFilePath)Create an instance.List<String>getCommandParts()Returns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder.
-
-
-
Method Detail
-
from
public static VaultRekeyCommand from(VaultConfiguration configuration, String encryptedFilePath, String newVaultPasswordFilePath)
Create an instance.- Parameters:
configuration- theVaultConfigurationto useencryptedFilePath- path to the encrypted file to rekeynewVaultPasswordFilePath- path to the vault password file containing the new password- 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)
-
-