Method: RuboCop::Server::Cache.write_pid_file
- Defined in:
- lib/rubocop/server/cache.rb
.write_pid_file ⇒ Object
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.
129 130 131 132 133 134 |
# File 'lib/rubocop/server/cache.rb', line 129 def write_pid_file pid_path.write(Process.pid) yield ensure dir.rmtree end |