-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from lexemmens/feature/fix-centos7
Read Podman storage location from confiuration
- Loading branch information
Showing
4 changed files
with
87 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/nl/lexemmens/podman/command/podman/PodmanSystemCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package nl.lexemmens.podman.command.podman; | ||
|
||
import nl.lexemmens.podman.command.Command; | ||
import nl.lexemmens.podman.config.podman.PodmanConfiguration; | ||
import nl.lexemmens.podman.executor.CommandExecutorDelegate; | ||
import org.apache.maven.plugin.logging.Log; | ||
|
||
/** | ||
* Implementation of the <code>podman version</code> command | ||
*/ | ||
public class PodmanSystemCommand extends AbstractPodmanCommand { | ||
|
||
private static final String SUBCOMMAND = "system"; | ||
|
||
private PodmanSystemCommand(Log log, PodmanConfiguration podmanConfig, CommandExecutorDelegate delegate) { | ||
super(log, podmanConfig, delegate, SUBCOMMAND, true); | ||
} | ||
|
||
/** | ||
* Builder class for the Podman Version command | ||
*/ | ||
public static class Builder { | ||
|
||
private final PodmanSystemCommand command; | ||
|
||
public Builder(Log log, PodmanConfiguration podmanConfig, CommandExecutorDelegate delegate) { | ||
this.command = new PodmanSystemCommand(log, podmanConfig, delegate); | ||
} | ||
|
||
public Builder info() { | ||
command.withOption("info", null); | ||
return this; | ||
} | ||
|
||
public Command build() { | ||
return command; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters