class RuboCop::Server::ClientCommand::Base
def send_request(command:, args: [], body: '')
def send_request(command:, args: [], body: '') TCPSocket.open('127.0.0.1', Cache.port_path.read) do |socket| socket.puts [Cache.token_path.read, Dir.pwd, command, *args].shelljoin socket.write body socket.close_write $stdout.write socket.readpartial(4096) until socket.eof? end end