Sha256: 9d9c86c849fb0af5eef30ca7f824a15512a1c43d4942df572efc374d940c51cc
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
#!/usr/local/env ruby require 'gitdocs' dirs = ARGV dirs << File.expand_path(Dir.pwd, File.dirname(__FILE__)) if dirs.empty? pids = dirs.map do |dir| fork do Dir.chdir(dir) do Gitdocs.new(Dir.pwd).run end end end pids.each do |pid| Process.waitpid(pid) end at_exit do pids.each do |pid| Process.kill("INT", pid) rescue nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitdocs-0.0.2 | bin/gitdocs |