Sha256: a6ee3a7593d9ef46391c3bedc6bc1a9f9f60f16859206d3b5a3bcdb34e8f5692
Contents?: true
Size: 425 Bytes
Versions: 3
Compression:
Stored size: 425 Bytes
Contents
#!/usr/bin/env ruby # -*- encoding: utf-8 -*- $:.push File.expand_path(File.join('..','..','lib'), __FILE__) require "rubygems" require "bundler" Bundler.setup require 'with_lock' include WithLock::Public begin with_lock(ARGV[0],ARGV[1].to_f||0.5) do sleep ARGV[2].to_f Kernel.exit! if ARGV[3].eql?('kernel_exit') exit(0) if ARGV[2].eql?('exit') end rescue WithLock::LockException => e puts exit(1) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
with_lock-0.1.1 | spec/support/get_lock.rb |
with_lock-0.1 | spec/support/get_lock.rb |
with_lock-0.0.4.alpha | spec/support/get_lock.rb |