Class: RuboCop::Server::ClientCommand::Base Private

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop/server/client_command/base.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.

Abstract base class for server client command.

API:

  • private

Direct Known Subclasses

Exec, Restart, Start, Status, Stop

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.args_config_file_pathObject

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.

API:

  • private



43
44
45
46
47
48
49
# File 'lib/rubocop/server/client_command/base.rb', line 43

def args_config_file_path
  first_args_config_key_index = ARGV.index { |value| ['-c', '--config'].include?(value) }

  return if first_args_config_key_index.nil?

  ARGV[first_args_config_key_index + 1]
end

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.

Raises:

API:

  • private



21
22
23
# File 'lib/rubocop/server/client_command/base.rb', line 21

def run
  raise NotImplementedError
end