Slide 57
Slide 57 text
4FSWFS1SPDFTT QJE
require 'rubocop'
TCPServer.open('127.0.0.1', port)
Process.daemon(true)
SVCPDPQEBFNPOXSBQQFS
rubocop-daemon-wrapper rubocop
5IFTIFMMTDSJQUTUBSUTUIFEBFNPOJGJUJTOPUSVOOJOH
$MJFOU1SPDFTT QJE
if [ ! -f "$TOKEN_PATH" ];
then
$RUBOCOP_DAEMON start
fi
# snip
if ! run_rubocop_command $@;
then
RuboCop::CLI.new.run
# ~/.bashrc
export PATH="/usr/local/bin/rubocop-daemon-wrapper:$PATH"
ncDNE
$RUBOCOP_DAEMON start
require 'rubocop'
TCPServer.open('127.0.0.1', port)
Process.daemon(true)