Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
open(io, signer = nil)
public
Creates a new TarOutput
which will yield a TarWriter
object for the data.tar.gz portion of a gem-format tar file.
See #initialize for details on io and signer.
See #add_gem_contents
for details on adding metadata to the tar file.
# File lib/rubygems/package/tar_output.rb, line 28
def self.open(io, signer = nil, &block) # :yield: data_tar_writer
tar_outputter = new io, signer
tar_outputter.add_gem_contents(&block)
tar_outputter.add_metadata
tar_outputter.add_signatures
ensure
tar_outputter.close
end