Class Dockerfile.CopyFileInstruction
- java.lang.Object
-
- com.bmuschko.gradle.docker.tasks.image.Dockerfile.FileInstruction<Dockerfile.CopyFile>
-
- com.bmuschko.gradle.docker.tasks.image.Dockerfile.CopyFileInstruction
-
- All Implemented Interfaces:
Dockerfile.Instruction
- Enclosing class:
- Dockerfile
public static class Dockerfile.CopyFileInstruction extends Dockerfile.FileInstruction<Dockerfile.CopyFile>
Represents aCOPY
instruction.
-
-
Constructor Summary
Constructors Constructor Description CopyFileInstruction(Dockerfile.CopyFile file)
CopyFileInstruction(Provider<Dockerfile.CopyFile> provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKeyword()
Gets the keyword of the instruction as used in the Dockerfile.String
getText()
Gets the full text of the instruction as used in the Dockerfile.-
Methods inherited from class com.bmuschko.gradle.docker.tasks.image.Dockerfile.FileInstruction
getFile
-
-
-
-
Field Detail
-
KEYWORD
public static final String KEYWORD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CopyFileInstruction
public CopyFileInstruction(Dockerfile.CopyFile file)
-
CopyFileInstruction
public CopyFileInstruction(Provider<Dockerfile.CopyFile> provider)
-
-
Method Detail
-
getText
public String getText()
Description copied from class:Dockerfile.FileInstruction
Gets the full text of the instruction as used in the Dockerfile.- Specified by:
getText
in interfaceDockerfile.Instruction
- Overrides:
getText
in classDockerfile.FileInstruction<Dockerfile.CopyFile>
- Returns:
- The instruction
-
getKeyword
public String getKeyword()
Gets the keyword of the instruction as used in the Dockerfile.For example the keyword of the
Dockerfile.FromInstruction
isFROM
.- Returns:
- The instruction keyword
-
-