global

def pack(src, dest, recurse_dirs = true, &block)

matching will be packed.
If +src+ is not an Array, it will be treated as the result of Find.find; all files

Minitar::Output stream; if +recurse_dirs+ is true, then directories will be recursed.
Array, then each file detailed therein will be packed into the resulting
A convenience method to pack files specified by +src+ into +dest+. If +src+ is an
def pack(src, dest, recurse_dirs = true, &block)
  require "find"
  Minitar::Output.open(dest) do |outp|
    if src.is_a?(Array)
      src.each do |entry|
        if dir?(entry) && recurse_dirs
          Find.find(entry) do |ee|
            pack_file(ee, outp, &block)
          end
        else
          pack_file(entry, outp, &block)
        end
      end
    else
      Find.find(src) do |entry|
        pack_file(entry, outp, &block)
      end
    end
  end
end