module PolicyManager

c.secret_key = "oeoeo123eoeo"
c.encryptor = :sha512
c.rule(on: User, fields: [:email])

end

This is a simple example which uses rubyzip to recursively generate a zip file from the contents of a specified directory. The directory itself is not included in the archive, rather just its contents.

Usage:

directory_to_zip = "/tmp/input"
output_file = "/tmp/out.zip"
zf = ZipFileGenerator.new(directory_to_zip, output_file)
zf.write()

Constants

VERSION