Ensure that only one instance of a Ruby script will be run at a time on unix-based systems. For more information on file locking see: flock(2) manpage
gem install flockerTo use flocker simply require it in your script:
require 'flocker'| Name | Name | Last commit date | ||
|---|---|---|---|---|
Ensure that only one instance of a Ruby script will be run at a time on unix-based systems. For more information on file locking see: flock(2) manpage
gem install flockerTo use flocker simply require it in your script:
require 'flocker'