Sha256: e4d25aa11244a729b132741cbc3effa3dd9cb4f8db262ee6d076915ce58c82b7
Contents?: true
Size: 234 Bytes
Versions: 2
Compression:
Stored size: 234 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/daemon_runner' require 'dev/consul' @service = 'myservice' @lock_count = 3 @locked = false @semaphore = DaemonRunner::Semaphore.start(@service) DaemonRunner::Semaphore.lock(@lock_count)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
daemon_runner-0.4.1 | examples/example_semaphore.rb |
daemon_runner-0.4.0 | examples/example_semaphore.rb |