a ruby version of bin/infod