ai.digital.integration.server.deploy.tasks.cluster.dockercompose.DockerComposeBasedStopDeployClusterTask.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.deploy.tasks.cluster.dockercompose
import ai.digital.integration.server.common.constant.PluginConstant
import ai.digital.integration.server.deploy.internals.cluster.DeployDockerClusterHelper
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
open class DockerComposeBasedStopDeployClusterTask: DefaultTask() {
companion object {
const val NAME = "dockerComposedBasedStopDeployCluster"
}
init {
group = PluginConstant.PLUGIN_GROUP
}
@TaskAction
fun launch() {
DeployDockerClusterHelper(project).shutdownCluster()
}
}