Module OatsLock
In: lib/oats_lock.rb

Manages a lock file indicating a OATS session is in process TODO: Cygwin allow file removal w/o exception. Try using an open socket for more robust invalid lock detection.

Methods

exists?   init   is_set?   locked?   parse_process_line   reset   set  

Constants

LOCK_FILE = 'oats_in_progress.lock'

Public Class methods

Returns true if Lock is currently set

Returns the locked state after the last check

Returns true if Lock was set

Returns true if able to set the lock.

[Validate]