def log_and_clear_command_output(command, stream)
      output = command.public_send(stream)
      log_command_data(command, stream, output)
      command.public_send("#{stream}=", "")
    end
def log_and_clear_command_output(command, stream)
      output = command.public_send(stream)
      log_command_data(command, stream, output)
      command.public_send("#{stream}=", "")
    end
For SSHKit versions up to and including 1.7.1, the stdout and stderr
 output was available as attributes on the Command. Print the data for
 the specified command and stream if enabled and clear the stream.
 (see Airbrussh::Configuration#command_output).