All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy