Sha256: 2e420f7890864914bbcbaf9dfab2d1dfb15e2f42f476c624ab33b4406b39d51b
Contents?: true
Size: 545 Bytes
Versions: 3
Compression:
Stored size: 545 Bytes
Contents
#!/usr/bin/ruby require 'optparse' $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'lockit' options = {} optparse = OptionParser.new do |opts| opts.banner = "Usage: unlock [options] [dir]" # This displays the help screen, all programs are # assumed to have this option. opts.on( '-h', '--help', 'Display this screen' ) do puts opts exit end end optparse.parse! options[:dir] = ARGV.shift options[:dir] ||= Dir.pwd response = LockIt::Dir.new(options[:dir]).unlock exit 1 unless response
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lockit-0.1.2 | bin/unlockit |
lockit-0.1.1 | bin/unlockit |
lockit-0.0.0 | bin/unlockit |