Skip to content
instance method

Gem::Package::TarWriter#add_file_signed

add_file_signed(name, mode, signer) { |io| ... }

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.