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

com.bmuschko.gradle.docker.tasks.network.DockerInspectNetwork.groovy Maven / Gradle / Ivy

There is a newer version: 6.7.0
Show newest version
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)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy