com.netflix.gradle.plugins.docker.DockerfileInstructionManager.groovy Maven / Gradle / Ivy
package com.netflix.gradle.plugins.docker
class DockerfileInstructionManager {
private final List instructions = new ArrayList()
void addInstruction(String instruction) {
instructions << instruction
}
void create(File dockerFile) {
dockerFile.withWriter { out ->
instructions.each { instruction ->
out.println instruction
}
}
}
}