Class Gem::Indexer::AbstractIndexBuilder
In: lib/rubygems/indexer/abstract_index_builder.rb
Parent: Object

Abstract base class for building gem indicies. Uses the template pattern with subclass specialization in the begin_index, end_index and cleanup methods.

Methods

build   cleanup   compress   end_index   new   start_index   unzip   zip  

Attributes

directory  [R]  Directory to put index files in
filename  [R]  File name of the generated index
files  [R]  List of written files/directories to move into production

Public Class methods

Public Instance methods

Build a Gem index. Yields to block to handle the details of the actual building. Calls begin_index, end_index and cleanup at appropriate times to customize basic operations.

Called from within builder after the index file has been closed.

Compress the given file.

Called immediately after the yield in build. The index file is still open and available as @file.

Called immediately before the yield in build. The index file is open and available as @file.

Return an uncompressed version of a compressed string.

Return a compressed version of the given string.

[Validate]