Class: RuboCop::Daemon::ClientCommand::Exec
- Defined in:
- lib/rubocop/daemon/client_command/exec.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from RuboCop::Daemon::ClientCommand::Base
Instance Method Details
#run ⇒ Object
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 |