com.netflix.gradle.plugins.docker.DockerfileInstructionManager.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-ospackage-plugin Show documentation
Show all versions of gradle-ospackage-plugin Show documentation
Provides a task similar to Tar and Zip for constructing RPM and DEB package files.
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
}
}
}
}