Class: RuboCop::Daemon::ClientCommand::Exec

Inherits:
Base
  • Object
show all
Defined in:
lib/rubocop/daemon/client_command/exec.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RuboCop::Daemon::ClientCommand::Base

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/rubocop/daemon/client_command/exec.rb', line 7

def run
  args = parser.parse(@argv)
  ensure_server!
  Cache.status_path.delete if Cache.status_path.file?
  send_request(
    command: 'exec',
    args: args,
    body: $stdin.tty? ? '' : $stdin.read,
  )
  exit_with_status!
end