Add the following code to your project's shard.yml under:
to use in production
- OR -
development_dependencies to use in development
This shard implements a portable lockfile implementation. It is a port, with some modernizations, of the implementation found in the IOWA web framework for Ruby, which was, in turn, originally based on lockfile.rb from Ara Howard.
It uses links to implement atomic, portable locking, but it can fall back on the flock() call if ran in an environment where linking doesn't seem to work. This is the default mode of operation. If one specifically wants it to use only flock, or only links, that can be specified when a lockfile is created.
Add the dependency to your
dependencies: lockfile: github: wyhaines/lockfile
TODO: Write usage instructions here
TODO: Write development instructions here
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)