class Redispot::WorkingDirectory::Remover
Public Class Methods
new(directory)
click to toggle source
# File lib/redispot/working_directory.rb, line 31 def initialize (directory) @pid = Process.pid @directory = directory end
Public Instance Methods
call(*args)
click to toggle source
# File lib/redispot/working_directory.rb, line 36 def call (*args) return if @pid != Process.pid FileUtils.remove_entry_secure(@directory) rescue Errno::ENOENT end