Sha256: d083ad7eb25a363e4c2a78423b1cc6b8d250a9c72c0659da5071d38b82ae9da7
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
#!/usr/bin/ruby if ARGV.include?('-h') || ARGV.include?('--help') || ARGV.length == 0 puts 'syntax: [-v] [-l or --list to only list] "command string to match" then some other command to run with its args' exit end require 'after' require 'andand' # to avoid warnings if ARGV[0] == '-v' ARGV.shift $VERBOSE = true puts 'running in verbose mode, my pid is ' + Process.pid.to_s end if ARGV[0] == '-l' || ARGV[0] == '--list' $VERBOSE = true # so it'll output ARGV.shift After.find_pids(ARGV.shift) exit end After.find_and_wait_for(ARGV.shift) system(ARGV)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
after-0.2.1 | bin/after |