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

de.gesellix.gradle.docker.tasks.DockerInfoTask Maven / Gradle / Ivy

package de.gesellix.gradle.docker.tasks;

import de.gesellix.docker.client.EngineResponseContent;
import de.gesellix.docker.remote.api.SystemInfo;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.tasks.Internal;
import org.gradle.api.tasks.TaskAction;

import javax.inject.Inject;

public class DockerInfoTask extends GenericDockerTask {

  private EngineResponseContent info;

  @Internal
  public EngineResponseContent getInfo() {
    return info;
  }

  @Inject
  public DockerInfoTask(ObjectFactory objectFactory) {
    super(objectFactory);
    setDescription("Display system-wide information");
  }

  @TaskAction
  public EngineResponseContent info() {
    getLogger().info("docker info");
    return info = getDockerClient().info();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy