Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (16 sloc) 0.475 kb
72c0457 @miyagawa Implemented --list-plugins
authored
1 name 'github';
2 description 'Install distributions from github';
3 synopsis 'cpanm github:miyagawa/Plack';
4 author 'Tatsuhiko Miyagawa';
5
6 api_version 0.1;
ccfd066 @miyagawa Added github plugin: cpanm github:miyagawa/Plack
authored
7
8 hook locate_dist => sub {
9 my $args = shift;
10
7fb05ad @miyagawa fixed locate_dist plugin API
authored
11 if ($args->{module} =~ s/^github://) {
12 my($who, $what, $tag) = split '/', $args->{module};
847d0d1 @miyagawa make the match a bit stricter
authored
13 if ($who && $what) {
14 $tag ||= 'master';
15 return "http://github.com/$who/$what/tarball/$tag";
16 }
ccfd066 @miyagawa Added github plugin: cpanm github:miyagawa/Plack
authored
17 }
7fb05ad @miyagawa fixed locate_dist plugin API
authored
18
19 return;
ccfd066 @miyagawa Added github plugin: cpanm github:miyagawa/Plack
authored
20 };
Something went wrong with that request. Please try again.