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

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

Dependencies

Annotate this POD

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

NAME ^

CPAN::Index::API::File::PackagesDetails - Write 02packages.details

VERSION ^

version 0.004

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.

written_by

Name and version of software that wrote the file.

intended_for

Target consumers of the file.

last_updated

Date and time when the file was last updated.

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::Reader/read_from_string>
<CPAN::Index::API::Role::Reader/read_from_file>
<CPAN::Index::API::Role::Reader/read_from_tarball>
<CPAN::Index::API::Role::Reader/read_from_repo_path>
<CPAN::Index::API::Role::Reader/read_from_repo_uri>
"repo_path" in CPAN::Index::API::Role::Writer
"template" in CPAN::Index::API::Role::Writer
"content" in CPAN::Index::API::File::Role::Writer
" write_to_file" in CPAN::Index::API::File::Role::Writer
"write_to_tarball" in CPAN::Index::API::File::Role::Writer

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: