write

write(data) Instance Public methods Writes data onto the IO, raising a FileOverflow exception if the number of bytes will be more than limit

new

new(io) Class Public methods Creates a new RestrictedStream wrapping io

write

write(data) Instance Public methods Writes data onto the IO

new

new(io) Class Public methods Creates a new TarWriter, yielding it if a block is given

new 2

new(io) Class Public methods Creates a new TarWriter that will write to io

add_file

add_file(name, mode) Instance Public methods Adds file name with permissions mode, and yields an IO for writing the file to

add_file_digest

add_file_digest(name, mode, digest_algorithms) Instance Public methods Adds name with permissions mode to the tar, yielding io for writing the file. The digest_algorithm is written to a read-only name.sum file following the given file contents containing the digest name and hexdigest separated by a tab. The created digest object is returned.

add_file_signed

add_file_signed(name, mode, signer) Instance Public methods Adds name with permissions mode to the tar, yielding io for writing the file. The signer is used to add a digest file using its digest_algorithm per #add_file_digest and a cryptographic signature in name.sig. If the signer has no key only the checksum file is added. Returns the digest.

add_file_simple

add_file_simple(name, mode, size) Instance Public methods Add file name with permissions mode size bytes long. Yields an IO to write the file to.

check_closed

check_closed() Instance Public methods Raises IOError if the TarWriter is closed