instiki/vendor/plugins/rubyzip-0.9.1/samples/write_simple.rb
2007-01-22 07:43:50 -06:00

13 lines
192 B
Ruby
Executable file

#!/usr/bin/env ruby
$: << "../lib"
require 'zip/zip'
include Zip
ZipOutputStream.open('simple.zip') {
|zos|
ze = zos.put_next_entry 'entry.txt'
zos.puts "Hello world"
}