NAME

Dist::Zilla::Role::xPANResolver - Tools to resolve a package to a URI from a CPAN/DARKPAN mirror.

VERSION

version 0.2.1

METHODS

resolve_module

with 'Dist::Zilla::Role::xPANResolver';

sub foo {
  my $self = @_;
  my $uri = $self->resolve_module(
    'http://some.darkpan.org', 'FizzBuzz::Bazz'
  );
}

This should resolve the Module to the applicable package, and return the most recent distribution.

It should then return a fully qualified path to that resource suitable for passing to wget or cpanm.

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Kent Fredric <kentnl@cpan.org>.

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