Method: Quebert::Support::PidFile.read

Defined in:
lib/quebert/support/pid_file.rb

.read(file) ⇒ Object

Read pids and turn them into ints



20
21
22
23
24
25
26
# File 'lib/quebert/support/pid_file.rb', line 20

def self.read(file)
  if File.file?(file) && pid = File.read(file)
    pid.to_i
  else
    nil
  end
end