Sha256: 6845c15745f9cc0e84373fa7d3494480ebbbf754e4bca8bbcb7753a0158bd2c5
Contents?: true
Size: 443 Bytes
Versions: 16
Compression:
Stored size: 443 Bytes
Contents
module Codesake module Commons class Io def self.remove_pid_file(pid_file) File.delete(pid_file) if File.exists?(pid_file) end def self.create_pid_file(pid_file) f = File.new(pid_file, "w") f.write("#{Process.pid}") f.close end def self.read_pid_file(pid_file) f = File.new(pid_file, "r") pid=f.read f.close pid end end end end
Version data entries
16 entries across 16 versions & 2 rubygems