Christian Walde > CPAN-Mini-Inject-0.32 > CPAN::Mini::Inject::Config

Download:
CPAN-Mini-Inject-0.32.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  1
Stalled  1
View/Report Bugs
Module Version: 0.32   Source   Latest Release: CPAN-Mini-Inject-0.33

NAME ^

CPAN::Mini::Inject::Config - Config for CPAN::Mini::Inject

VERSION ^

Version 0.32

new

config_file( [FILE] )

load_config()

loadcfg accepts a CPAN::Mini::Inject config file or if not defined will search the following four places in order:

loadcfg sets the instance variable cfgfile to the file found or undef if none is found.

 print "$mcpi->{cfgfile}\n"; # /etc/mcpani

parse_config()

parsecfg reads the config file stored in the instance variable cfgfile and creates a hash in config with each setting.

  $mcpi->{config}{remote} # CPAN sites to mirror from.

parsecfg expects the config file in the following format:

 local: /www/CPAN
 remote: ftp://ftp.cpan.org/pub/CPAN ftp://ftp.kernel.org/pub/CPAN
 repository: /work/mymodules
 passive: yes
 dirmode: 0755

Description of options:

If either local or remote are not defined parsecfg croaks.

get( DIRECTIVE )

Return the value for the named configuration directive.

set( DIRECTIVE, VALUE )

Sets the value for the named configuration directive.

CURRENT MAINTAINER ^

Christian Walde <walde.christian@googlemail.com>

BUGS ^

Please report any bugs or feature requests to bug-cpan-mini-inject@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

syntax highlighting: