Allows writing of tar files

Class Methods

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

Instance Methods

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

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.

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 name with permissions mode size bytes long. Yields an IO to write the file to.

Adds symlink name with permissions mode, linking to target.

Raises IOError if the TarWriter is closed

Closes the TarWriter

Is the TarWriter closed?

Flushes the TarWriter’s IO

Creates a new directory in the tar file name with mode