class Kitchen::Transport::Dokken::Connection
def execute(command)
def execute(command) return if command.nil? with_retries { @runner = ::Docker::Container.get(instance_name, {}, docker_connection) } with_retries do o = @runner.exec(Shellwords.shellwords(command), 'e' => { 'TERM' => 'xterm' }) { |_stream, chunk| print chunk.to_s } @exit_code = o[2] end raise Transport::DockerExecFailed, "Docker Exec (#{@exit_code}) for command: [#{command}]" if @exit_code != 0 end