Class Dockerfile.FromInstruction
- java.lang.Object
-
- com.bmuschko.gradle.docker.tasks.image.Dockerfile.FromInstruction
-
- All Implemented Interfaces:
Dockerfile.Instruction
- Enclosing class:
- Dockerfile
public static class Dockerfile.FromInstruction extends Object implements Dockerfile.Instruction
Represents aFROMinstruction.
-
-
Constructor Summary
Constructors Constructor Description FromInstruction(Dockerfile.From from)FromInstruction(Provider<Dockerfile.From> provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKeyword()Gets the keyword of the instruction as used in the Dockerfile.StringgetText()Gets the full text of the instruction as used in the Dockerfile.
-
-
-
Field Detail
-
KEYWORD
public static final String KEYWORD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FromInstruction
public FromInstruction(Dockerfile.From from)
-
FromInstruction
public FromInstruction(Provider<Dockerfile.From> provider)
-
-
Method Detail
-
getKeyword
public String getKeyword()
Gets the keyword of the instruction as used in the Dockerfile.For example the keyword of the
Dockerfile.FromInstructionisFROM.- Specified by:
getKeywordin interfaceDockerfile.Instruction- Returns:
- The instruction keyword
-
getText
public String getText()
Gets the full text of the instruction as used in the Dockerfile.- Specified by:
getTextin interfaceDockerfile.Instruction- Returns:
- The instruction
-
-