def write(inputDir, outputFile)
      entries = Dir.entries(inputDir); entries.delete("."); entries.delete("..")
      io = Zip::File.open(outputFile, Zip::File::CREATE);

      writeEntries(entries, "", io, inputDir)
      io.close();
    end
def write(inputDir, outputFile)
      entries = Dir.entries(inputDir); entries.delete("."); entries.delete("..")
      io = Zip::File.open(outputFile, Zip::File::CREATE);

      writeEntries(entries, "", io, inputDir)
      io.close();
    end
Initialize with the directory to zip and the location of the output archive.
 Zip the input directory.