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 Details

    • StringCommandInstruction

      public StringCommandInstruction(String command)
    • StringCommandInstruction

      public StringCommandInstruction(Provider<String> commandProvider)
  • Method Details

    • getText

      public String getText()
      Gets the full text of the instruction as used in the Dockerfile.
      Specified by:
      getText in interface Dockerfile.Instruction
      Returns:
      The instruction