Class Gem::Package::TarWriter
In: lib/rubygems/package/tar_writer.rb
Parent: Object

Allows writing of tar files

Methods

add_file   add_file_simple   check_closed   close   closed?   flush   mkdir   new   new  

Classes and Modules

Class Gem::Package::TarWriter::BoundedStream
Class Gem::Package::TarWriter::FileOverflow
Class Gem::Package::TarWriter::RestrictedStream

Public Class methods

Creates a new TarWriter that will write to io

Creates a new TarWriter, yielding it if a block is given

Public Instance methods

Adds file name with permissions mode, and yields an IO for writing the file to

Add file name with permissions mode size bytes long. Yields an IO to write the file to.

Raises IOError if the TarWriter is closed

Closes the TarWriter

Flushes the TarWriter‘s IO

Creates a new directory in the tar file name with mode

[Validate]