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

com.netflix.gradle.plugins.deb.InstallLineGenerator.groovy Maven / Gradle / Ivy

There is a newer version: 11.10.0
Show newest version
package com.netflix.gradle.plugins.deb

class InstallLineGenerator {
    String generate(DebCopyAction.InstallDir dir) {
        StringBuilder sb = new StringBuilder("install ")
        if(dir.user) {
            sb.append("-o ${dir.user} ")
        }
        if(dir.group) {
            sb.append("-g ${dir.group} ")
        }
        sb.append("-d ${dir.name}")
        sb.toString()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy