Skip to content

skaji/Perl-PrereqDistributionGatherer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Perl::PrereqDistributionGatherer - gather all prerequisite distributions

SYNOPSIS

use Perl::PrereqDistributionGatherer;

my $gatherer = Perl::PrereqDistributionGatherer->new;

my ($dists, $core, $miss) = $gatherer->gather(["Plack", "Moose"]);

# or, from cpanfile
my ($dists, $core, $miss) = $gatherer->gather_from_cpanfile("cpanfile");

DESCRIPTION

Perl::PrereqDistributionGatherer gathers all prerequisite distributions for some modules.

METHODS

  • my $gatherer = Perl::PrereqDistributionGatherer->new(%option)

    Constructor. %option may be:

    • inc

      The search path of modules. Default: \@INC.

    • fill_archlib

      If this is true, then prepend archlib to inc directories.

  • my ($dists, $core, $miss) = $gatherer->gather($modules)

    Gatherer distributions which are prerequisite for $modules. The return values are:

    • $dists

      Array reference of prerequisite distributions, which are instances of Distribution::Metadata.

    • $core

      Array reference of prerequisite core modules.

    • $miss

      Array reference of missed modules.

  • my ($dists, $core, $miss) = $gatherer->gather_from_cpanfile($cpanfile_path)

    This is convenient method, which gathers prerequisite distributions by modules stated in cpanfile. The return values is the same as the gather method.

SEE ALSO

Carton

https://github.com/miyagawa/Carmel

Distribution::Metadata

Module::Metadata

LICENSE

Copyright (C) 2016 Shoichi Kaji <skaji@cpan.org>

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

AUTHOR

Shoichi Kaji <skaji@cpan.org>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages