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

Inherits:
Base
  • Object
show all
Defined in:
lib/rubocop/service/patch/server/client_command/stop.rb

Overview

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

This class is a client command to stop server process.

Instance Method Summary collapse

Instance Method Details

#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.



9
10
11
12
13
14
# File 'lib/rubocop/service/patch/server/client_command/stop.rb', line 9

def run
  return unless check_running_server

  send_request(command: "stop")
  Server.wait_for_running_status!(false)
end