Class DockerAddCmd
- java.lang.Object
-
- io.patriot_framework.network_simulator.docker.image.docker.builder.parts.DockerAddCmd
-
- All Implemented Interfaces:
DockerFilePart
public class DockerAddCmd extends Object implements DockerFilePart
The type Add docker file part.
-
-
Constructor Summary
Constructors Constructor Description DockerAddCmd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setRequest(String plainLine)
Prepare request for Dockerfile translation.void
setRequest(String newFile, String filePath)
Prepare specific ADD request line for translation and complete plainLine.String
translate()
Translate request for specific Dockerfile command line.
-
-
-
Method Detail
-
setRequest
public void setRequest(String plainLine)
Description copied from interface:DockerFilePart
Prepare request for Dockerfile translation.- Specified by:
setRequest
in interfaceDockerFilePart
- Parameters:
plainLine
- the plain line
-
setRequest
public void setRequest(String newFile, String filePath)
Prepare specific ADD request line for translation and complete plainLine.- Parameters:
newFile
- the new filefilePath
- the file path
-
translate
public String translate()
Description copied from interface:DockerFilePart
Translate request for specific Dockerfile command line.- Specified by:
translate
in interfaceDockerFilePart
- Returns:
- the string
-
-