Sha256: 87dbd6c1f31cc40f2927fb383e311ccde94662b9a8394b5736f534ad36357366
Contents?: true
Size: 608 Bytes
Versions: 6
Compression:
Stored size: 608 Bytes
Contents
require 'zip/zip' module IronWorkerNG module Code module Container class Zip < IronWorkerNG::Code::Container::Base def initialize super @name = @name + '.zip' @zip = ::Zip::ZipFile.open(@name, ::Zip::ZipFile::CREATE) end def add(dest, src, commit = false) @zip.add(clear_dest(dest), src) @zip.commit if commit end def get_output_stream(dest, &block) @zip.get_output_stream(clear_dest(dest), &block) end def close @zip.close end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems