Sha256: 335cc6b7a8ddfc489fc172b71474ce9ffe457dfab2431f3822c36e7a22bdcdf6
Contents?: true
Size: 1003 Bytes
Versions: 6
Compression:
Stored size: 1003 Bytes
Contents
# frozen_string_literal: true # takeltau docker container command module DockerContainerCommand # Backend method for docker container command. def docker_container_command(command) log.debug 'Running command in container' return false unless docker_check_daemon # no matrjoschka test here unless docker_container_check_existing @hostname return false unless _docker_container_lib_create_net_and_ctr @hostname _docker_container_lib_start_sockets end _docker_container_command_run_command @hostname, command end private # Prepare run command in container command. def _docker_container_command_run_command(container, command) log.debug "Running command \"#{command}\" in container \"#{container}\"" cmd_docker_run_command = format( config.active['cmd_docker_container_docker_exec'], container: container, username: @username, command: command ) run_and_exit cmd_docker_run_command end end
Version data entries
6 entries across 6 versions & 1 rubygems