Class: Gem::Indexer::AbstractIndexBuilder

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

new(filename, directory)

### Public Instance methods

build() {|| ...}

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.

cleanup()

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

compress(filename, ext="rz")

Compress the given file.

end_index()

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

start_index()

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

unzip(string)

Return an uncompressed version of a compressed string.

zip(string)

Return a compressed version of the given string.

[Validate]