Method: RuboCop::Server::ClientCommand::Stop#run

Defined in:
lib/rubocop/server/client_command/stop.rb

#runObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
21
22
23
24
25
26
27
# File 'lib/rubocop/server/client_command/stop.rb', line 18

def run
  return unless check_running_server

  pid = fork do
    send_request(command: 'stop')
    Server.wait_for_running_status!(false)
  end

  Process.waitpid(pid)
end