Class Dockerfile.StringArrayInstruction

java.lang.Object
com.bmuschko.gradle.docker.tasks.image.Dockerfile.StringArrayInstruction
All Implemented Interfaces:
Dockerfile.Instruction
Direct Known Subclasses:
Dockerfile.DefaultCommandInstruction, Dockerfile.EntryPointInstruction, Dockerfile.VolumeInstruction
Enclosing class:
Dockerfile

public abstract static class Dockerfile.StringArrayInstruction extends Object implements Dockerfile.Instruction
An instruction whose value is a String array.
  • Constructor Details

    • StringArrayInstruction

      public StringArrayInstruction(String... command)
    • StringArrayInstruction

      public StringArrayInstruction(Provider<List<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