Class Dockerfile.GenericInstruction
- java.lang.Object
- 
- com.bmuschko.gradle.docker.tasks.image.Dockerfile.GenericInstruction
 
- 
- All Implemented Interfaces:
- Dockerfile.Instruction
 - Enclosing class:
- Dockerfile
 
 public static class Dockerfile.GenericInstruction extends Object implements Dockerfile.Instruction An instruction that uses the provided value as-is without any additional formatting.Use this instruction if you want to provide a very complex instruction or if there's not a specific implementation of Dockerfile.Instructionthat serves your use case.
- 
- 
Constructor SummaryConstructors Constructor Description GenericInstruction(String instruction)GenericInstruction(Provider<String> instructionProvider)
 - 
Method SummaryAll 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.
 
- 
- 
- 
Method Detail- 
getKeywordpublic String getKeyword() Gets the keyword of the instruction as used in the Dockerfile.For example the keyword of the Dockerfile.FromInstructionisFROM.- Specified by:
- getKeywordin interface- Dockerfile.Instruction
- Returns:
- The instruction keyword
 
 - 
getTextpublic String getText() Gets the full text of the instruction as used in the Dockerfile.- Specified by:
- getTextin interface- Dockerfile.Instruction
- Returns:
- The instruction
 
 
- 
 
-