Sha256: 95841079b611e45ae770ba4c9ccb6b00b75cb1d14009a2d04ff3385d6b84ab52
Contents?: true
Size: 1013 Bytes
Versions: 5
Compression:
Stored size: 1013 Bytes
Contents
module Dnnbundler class FileEntry def initialize(file_name, entry_type = FileEntryType::FILE, flatten_structure = false, file_path = nil) @type = entry_type @name = file_name @path = file_path @flatten = flatten_structure end # Saves +StringIO+ buffer into object, intended to store nested zip files in memory def add_buffer(buffer) @buffer = buffer end # Entry type: ZIP or FILE def type @type end # Entry name, used as a real path in file system def name @name end # True if existing directory structure shouldn't be preserved' def flatten @flatten end # +StringIO+ buffer with nested zip file def buffer @buffer end # Path of entry in a zip archive def path @path end end end
Version data entries
5 entries across 5 versions & 1 rubygems