module Kellerkind::Lock
Public Instance Methods
lock_process()
click to toggle source
# File lib/kellerkind/system/lock.rb, line 5 def lock_process unless File.exists?(Kellerkind::Config.lock_dir) FileUtils.mkdir(Kellerkind::Config.lock_dir) end FileUtils.touch(Kellerkind::Config.lock_path) end
unlock_process()
click to toggle source
# File lib/kellerkind/system/lock.rb, line 12 def unlock_process if File.exists?(Kellerkind::Config.lock_path) FileUtils.rm(Kellerkind::Config.lock_path) end end