Skip to content

Commit 62a9f96

Browse files
committed
Add a script to mirror CPAN for when developing Metacpan (instead of needing rrr tool)
1 parent 860bea7 commit 62a9f96

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bin/mirror_cpan_for_developers.pl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This script is only needed if you are developing metacpan,
2+
# on the live servers we use File::Rsync::Mirror::Recent
3+
# https://github.com/CPAN-API/Metacpan-Puppet/tree/master/modules/rrrclient
4+
5+
use CPAN::Mini;
6+
7+
CPAN::Mini->update_mirror(
8+
remote => 'http://www.cpan.org/',
9+
local => "/home/metacpan/CPAN",
10+
log_level => 'warn',
11+
);

0 commit comments

Comments
 (0)