# File lib/facets/core/fileutils/compress.rb, line 44
  def tar_gzip( folder, to_file=nil )
    require 'zlib'
    to_file ||= File.basename(File.expand_path(folder)) + '.tar.gz'
    puts "tar --gzip -czf #{to_file} #{folder}" if $VERBOSE

    gzIO = Zlib::GzipWriter.new(File.open(to_file, 'wb'))
    Archive::Tar::Minitar.pack(folder, gzIO)

    return File.expand_path(to_file)
  end