Class Dockerfile.StringCommandInstruction
java.lang.Object
com.bmuschko.gradle.docker.tasks.image.Dockerfile.StringCommandInstruction
- All Implemented Interfaces:
Dockerfile.Instruction
- Direct Known Subclasses:
Dockerfile.ArgInstruction
,Dockerfile.CommentInstruction
,Dockerfile.OnBuildInstruction
,Dockerfile.RunCommandInstruction
,Dockerfile.UserInstruction
,Dockerfile.WorkDirInstruction
- Enclosing class:
- Dockerfile
public abstract static class Dockerfile.StringCommandInstruction
extends Object
implements Dockerfile.Instruction
An instruction whose value is a String.
-
Constructor Summary
ConstructorDescriptionStringCommandInstruction
(String command) StringCommandInstruction
(Provider<String> commandProvider) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.bmuschko.gradle.docker.tasks.image.Dockerfile.Instruction
getKeyword
-
Constructor Details
-
StringCommandInstruction
-
StringCommandInstruction
-
-
Method Details
-
getText
Gets the full text of the instruction as used in the Dockerfile.- Specified by:
getText
in interfaceDockerfile.Instruction
- Returns:
- The instruction
-