ai.digital.integration.server.common.cluster.DockerClusterHelperCreator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integration-server-gradle-plugin Show documentation
Show all versions of integration-server-gradle-plugin Show documentation
The easy way to get custom setup for Deploy up and running
package ai.digital.integration.server.common.cluster
import ai.digital.integration.server.common.constant.ProductName
import ai.digital.integration.server.deploy.internals.cluster.DeployDockerClusterHelper
import ai.digital.integration.server.release.internals.cluster.ReleaseDockerClusterHelper
import org.gradle.api.Project
class DockerClusterHelperCreator {
companion object {
fun create(project: Project, productName: ProductName): DockerClusterHelper {
return when (productName) {
ProductName.DEPLOY -> DeployDockerClusterHelper(project)
ProductName.RELEASE -> ReleaseDockerClusterHelper(project)
}
}
}
}