@alexreg Look at `snzip.rb` and basically copy what's done there.