Class AbstractPodmanCommand
- java.lang.Object
-
- nl.lexemmens.podman.command.AbstractCommand
-
- nl.lexemmens.podman.command.podman.AbstractPodmanCommand
-
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
PodmanBuildCommand,PodmanLoginCommand,PodmanPushCommand,PodmanRmiCommand,PodmanSaveCommand,PodmanSystemCommand,PodmanTagCommand,PodmanVersionCommand
public abstract class AbstractPodmanCommand extends AbstractCommand
Base class for all Podman commands
-
-
Field Summary
-
Fields inherited from class nl.lexemmens.podman.command.AbstractCommand
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPodmanCommand(org.apache.maven.plugin.logging.Log log, PodmanConfiguration podmanConfig, CommandExecutorDelegate delegate, String subCommand, boolean redirectError)Constructs a new instance of thisAbstractPodmanCommand
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>getCommand()Returns the command to executeprotected booleanredirectError()Returns whether errors should be redirectedprotected voidwithOption(String option, String optionValue)Appends an option to this command-
Methods inherited from class nl.lexemmens.podman.command.AbstractCommand
execute
-
-
-
-
Constructor Detail
-
AbstractPodmanCommand
protected AbstractPodmanCommand(org.apache.maven.plugin.logging.Log log, PodmanConfiguration podmanConfig, CommandExecutorDelegate delegate, String subCommand, boolean redirectError)Constructs a new instance of thisAbstractPodmanCommand- Parameters:
log- The Maven logpodmanConfig- The Podman configuration in usedelegate- The executor delegatesubCommand- The subcmmand to execute, i.e. build or pushredirectError- Whether or not to redirect errors
-
-
Method Detail
-
getCommand
protected List<String> getCommand()
Description copied from class:AbstractCommandReturns the command to execute- Specified by:
getCommandin classAbstractCommand- Returns:
- The command to execute
-
redirectError
protected boolean redirectError()
Description copied from class:AbstractCommandReturns whether errors should be redirected- Specified by:
redirectErrorin classAbstractCommand
-
-