| CPAN::Mini::Inject::Config(3pm) | User Contributed Perl Documentation | CPAN::Mini::Inject::Config(3pm) |
CPAN::Mini::Inject::Config - Config for CPAN::Mini::Inject
my $config = CPAN::Mini::Inject::Config->new;
This is the default class dealing with the default CPAN::Mini::Inject config. The simplest config is a key-value file:
local: t/local/CPAN
remote : http://localhost:11027
repository: t/local/MYCPAN
dirmode: 0775
passive: yes
This module digests that and returns it as a hash reference. Any module that wants to use a different sort of config structure needs to return the same hash:
{
local => 't/local/CPAN',
remote => 'http://localhost:11027',
repository => 't/local/MYCPAN',
dirmode => '0775',
passive => 'yes',
}
Set the permissions of created directories to the specified mode. The default value is based on umask if supported.
passthrough to CPAN::Mini.
(required) location to store local CPAN::Mini mirror
passthrough to CPAN::Mini
passthrough to CPAN::Mini
Enable passive FTP.
(required) CPAN site(s) to mirror from. Multiple sites can be listed space separated.
Location to store modules to add to the local CPAN::Mini mirror.
passthrough to CPAN::Mini
passthrough to CPAN::Mini
passthrough to CPAN::Mini
loadcfg sets the instance variable cfgfile to the file found or undef if none is found.
print "$mcpi->{cfgfile}\n"; # /etc/mcpani
$mcpi->{config}{remote} # CPAN sites to mirror from.
parsecfg expects the config file in the following format:
local: /www/CPAN
remote: http://cpan.metacpan.org/
repository: /work/mymodules
passive: yes
dirmode: 0755
If either local or remote are not defined parsecfg croaks.
Shawn Sorichetti "<ssoriche@coloredblocks.net>"
The main repository is on GitHub:
https://github.com/briandfoy/cpan-mini-inject
There are also backup repositories on several other services:
https://bitbucket.org/briandfoy/cpan-mini-inject
https://codeberg.org/briandfoy/cpan-mini-inject
https://gitlab.com/briandfoy/cpan-mini-inject
Copyright 2004 Shawn Sorichetti, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| 2025-04-12 | perl v5.40.1 |