Sha256: 1d1589a2cc2e5db6b4f2f2801aa0d49b66df18e01f9a1e487107114535394740
Contents?: true
Size: 857 Bytes
Versions: 6
Compression:
Stored size: 857 Bytes
Contents
# frozen_string_literal: true # takeltau docker container check network module DockerContainerCheckNetwork # Backend method for docker container check network. # @return [Boolean] is network existing? def docker_container_check_network(network) log.debug "Checking if network \"#{network}\" is existing" return false unless docker_check_daemon stdout_str = run _docker_container_cmd_check_network network if stdout_str.to_s.chomp.empty? log.debug "Network \"#{network}\" is not existing" return false end log.debug "Network \"#{network}\" is existing" true end private # Prepare command to check if docker network exists. def _docker_container_cmd_check_network(network) format( config.active['cmd_docker_container_check_network_docker_network'], network: network ) end end
Version data entries
6 entries across 6 versions & 1 rubygems