Peter Shangov > CPAN-Index-API-0.006 > CPAN::Index::API::File::PackagesDetails

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

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.006   Source   Latest Release: CPAN-Index-API-0.007

NAME ^

CPAN::Index::API::File::PackagesDetails - Interface to 02packages.details.txt

VERSION ^

version 0.006

SYNOPSIS ^

  my $pckdetails = CPAN::Index::File::PackagesDetails->parse_from_repo_uri(
    'http://cpan.perl.org'
  );

  foreach my $package ($pckdetails->packages) {
    ... # do something
  }

DESCRIPTION ^

This is a class to read and write 03modlist.data

METHODS ^

packages

List of hashrefs representing packages indexed in the file. Each hashref has the following structure:

name

Package name, e.g. Foo::Bar.

version

Package version, e.g. 0.001.

distribuiton

Distribution the package belongs to, e.g. Foo-Bar-0.001.

package_count

Number of packages indexed in the file.

filename

Name of this file - defaults to 02packages.details.txt.gz;

description

Short description of the file.

intended_for

Target consumers of the file.

uri

Absolute URI pointing to the file location.

parse

Parses the file and reurns its representation as a data structure.

default_location

Default file location - modules/02packages.details.txt.gz.

METHODS FROM ROLES ^

<CPAN::Index::API::Role::Readable/read_from_string>
<CPAN::Index::API::Role::Readable/read_from_file>
<CPAN::Index::API::Role::Readable/read_from_tarball>
<CPAN::Index::API::Role::Readable/read_from_repo_path>
<CPAN::Index::API::Role::Readable/read_from_repo_uri>
"tarball_is_default" in CPAN::Index::API::Role::Writable
"repo_path" in CPAN::Index::API::Role::Writable
"template" in CPAN::Index::API::Role::Writable
"content" in CPAN::Index::API::Role::Writable
"write_to_file" in CPAN::Index::API::Role::Writable
"write_to_tarball" in CPAN::Index::API::Role::Writable
"clone" in CPAN::Index::API::Role::Clonable
"filename" in CPAN::Index::API::Role::HavingFilename
"generated_by" in CPAN::Index::API::Role::HavingGeneratedBy
"last_generated" in CPAN::Index::API::Role::HavingGeneratedBy

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: