123456789_123456789_123456789_123456789_123456789_

Class: RuboCop::Server::ClientCommand::Stop Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Base
Instance Chain:
self, Base
Inherits: RuboCop::Server::ClientCommand::Base
Defined in: lib/rubocop/server/client_command/stop.rb

Overview

This class is a client command to stop server process.

Instance Method Summary

Base - Inherited

Instance Method Details

#run

[ GitHub ]

  
# 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