Sha256: f1446e73a654d5963aa20fa67434a01822a9a048fd45036d62d89c3177fd710c
Contents?: true
Size: 864 Bytes
Versions: 3
Compression:
Stored size: 864 Bytes
Contents
class Indocker::ServerPools::DeployServerConnection < Indocker::ServerPools::ServerConnection def run_container_remotely(configuration_name:, container_name:, force_restart:) command_output = @logger.debug? ? "" : " > /dev/null" debug_options = @logger.debug? ? "-d" : "" force_restart_options = force_restart ? "-f" : "" deploy_args = @configuration.deploy_args ? @configuration.deploy_args.map { |k, v| "--deploy-arg=\"#{k}=#{v}\"" }.join(" ") : "" result = exec!( "cd #{Indocker::IndockerHelper.indocker_dir} && ./bin/remote/run -C #{configuration_name} -c #{container_name} #{deploy_args} #{debug_options} #{command_output} #{force_restart_options}" ) Indocker::SshResultLogger .new(@logger) .log(result, "#{container_name.to_s.green} deployment for server #{server.name} failed") result end end
Version data entries
3 entries across 3 versions & 1 rubygems