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

javaposse.jobdsl.dsl.helpers.toplevel.EnvironmentVariableContext.groovy Maven / Gradle / Ivy

There is a newer version: 1.22-rxd-2
Show newest version
package javaposse.jobdsl.dsl.helpers.toplevel

import javaposse.jobdsl.dsl.helpers.Context


class EnvironmentVariableContext implements Context {
    def props = []
    def groovyScript

    def env(Object key, Object value) {
        props << "${key}=${value}"
    }

    def envs(Map map) {
        map.entrySet().each {
            env(it.key, it.value)
        }
    }

    def groovy(String script) {
        groovyScript = script
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy