Sha256: 9aa694017d1ea4f5211d9cb40bf4d9f40037e16c978eb3f1db5dc5f76d6b81b2
Contents?: true
Size: 967 Bytes
Versions: 3
Compression:
Stored size: 967 Bytes
Contents
# frozen_string_literal: true # takelage 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 docker_socket_start return false unless _docker_container_lib_create_net_and_ctr @hostname mutagen_socket_create @mutagensock, @mutagensock if mutagen_check_daemon _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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
takelage-0.28.26 | lib/takelage/docker/container/command.rb |
takelage-0.28.24 | lib/takelage/docker/container/command.rb |
takelage-0.28.14 | lib/takelage/docker/container/command.rb |