com.bmuschko.gradle.docker.tasks.network.DockerInspectNetwork.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-docker-plugin Show documentation
Show all versions of gradle-docker-plugin Show documentation
Gradle plugin for managing Docker images and containers.
package com.bmuschko.gradle.docker.tasks.network
import com.github.dockerjava.api.DockerClient
import com.github.dockerjava.api.model.Network
class DockerInspectNetwork extends DockerExistingNetwork {
@Override
void runRemoteCommand(DockerClient dockerClient) {
logger.quiet "Inspecting network '${networkId.get()}'."
Network network = dockerClient.inspectNetworkCmd().withNetworkId(networkId.get()).exec()
if (nextHandler) {
nextHandler.execute(network)
}
}
}