Peter Shangov > CPAN-Index-API-0.007 > CPAN::Index::API::Role::Readable

Download:
CPAN-Index-API-0.007.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.007   Source  

NAME ^

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

VERSION ^

version 0.007

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.

syntax highlighting: