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

com.netflix.gradle.plugins.docker.DockerfileInstructionManager.groovy Maven / Gradle / Ivy

There is a newer version: 11.10.0
Show newest version
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