Package nl.lexemmens.podman.executor
Class CommandExecutorDelegateImpl
- java.lang.Object
-
- nl.lexemmens.podman.executor.CommandExecutorDelegateImpl
-
- All Implemented Interfaces:
CommandExecutorDelegate
public final class CommandExecutorDelegateImpl extends Object implements CommandExecutorDelegate
Delegate class that is responsible for actually executing a specific command. Putting this in a separate class allows for better testing.
-
-
Constructor Summary
Constructors Constructor Description CommandExecutorDelegateImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>executeCommand(org.zeroturnaround.exec.ProcessExecutor processExecutor)Executes the command as configured in the provided ProcessExecutor.
-
-
-
Method Detail
-
executeCommand
public List<String> executeCommand(org.zeroturnaround.exec.ProcessExecutor processExecutor) throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:CommandExecutorDelegateExecutes the command as configured in the provided ProcessExecutor.
Throws a MojoExecutionException in case command execution fails
- Specified by:
executeCommandin interfaceCommandExecutorDelegate- Parameters:
processExecutor- The process executor carrying the command to execute- Returns:
- A
ListofStrings representing the actual output of the command - Throws:
org.apache.maven.plugin.MojoExecutionException- In case execution of the command fails
-
-