The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CPAN::Index::API::Role::Readable - Reads index files

VERSION

version 0.006

DESCRIPTION

This role provides a collection of utility constructors for CPAN index file objects.

REQUIRES

default_location

Class method that returns a string specifying the path to the default location of this file relative to the repository root.

parse

This class method (generally invoked as part of the construction phase) should accept a string containing an index file, and return a list of key/value pairs suitable for passing to the constructor of the consuming class.

PROVIDES

read_from_string

Construct a new index file object by reading the file contents from a string.

read_from_file

Construct a new index file object by reading the file contents from a filename.

read_from_tarball

Construct a new index file object by reading the file contents from a tarball.

read_from_repo_path

Construct a new index file object by locating and parsing a file in a local repository.

read_from_repo_uri

Construct a new index file object by locating and parsing a file in a remote repository.

AUTHOR

Peter Shangov <pshangov@yahoo.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Venda, Inc..

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.