class Webgen::Source::TarArchive

This class is used to read source paths from a (gzipped) tar archive. The archive can be remote (http(s) or ftp) or local.

For example, the following are all valid URIs:

http://example.com/directory/file.tgz
/home/test/my.tar.gz
ftp://ftp.example.com/archives/archive.tar

Attributes

glob[R]

The glob (see File.fnmatch for details) that is used to specify which paths in the archive should be returned by paths.

uri[R]

The URI of the tar archive.

Public Class Methods

new(website, uri, glob = '**/*')

Create a new tar archive source for the URI string uri.

Public Instance Methods

paths()

Return all paths in the tar archive available at uri.