class Assistor::PidFile

Public Class Methods

new(pid_file) click to toggle source
# File lib/assistor/pid_file.rb, line 3
def initialize(pid_file)
  @pid_file = pid_file
end

Public Instance Methods

create(pid) click to toggle source
# File lib/assistor/pid_file.rb, line 7
def create(pid)
  File.write @pid_file, pid
end
delete() click to toggle source
# File lib/assistor/pid_file.rb, line 11
def delete
  File.delete @pid_file
end
exist?() click to toggle source
# File lib/assistor/pid_file.rb, line 15
def exist?
  File.exist? @pid_file
end