class RuboCop::Server::ClientCommand::Stop
This class is a client command to stop server process. @api private
Public Instance Methods
run()
click to toggle source
# 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