CPANPLUS::Config - configuration defaults and heuristics for CPANPLUS |
CPANPLUS::Config - configuration defaults and heuristics for CPANPLUS
### conf object via CPANPLUS::Backend; $cb = CPANPLUS::Backend->new; $conf = $cb->configure_object;
### or as a standalone object $conf = CPANPLUS::Configure->new;
### values in 'conf' section $verbose = $conf->get_conf( 'verbose' ); $conf->set_conf( verbose => 1 );
### values in 'program' section $editor = $conf->get_program( 'editor' ); $conf->set_program( editor => '/bin/vi' );
This module contains defaults and heuristics for configuration
information for CPANPLUS. To change any of these values, please
see the documentation in CPANPLUS::Configure
.
Below you'll find a list of configuration types and keys, and their meaning.
An example entry would like this:
{ 'scheme' => 'ftp', 'path' => '/pub/CPAN/', 'host' => 'ftp.cpan.org' },
true
then only warnings will be issued (the behaviour before 0.9114)
when a module is unresolvable from any our sources (CPAN and/or
custom_sources
). If false
then an unresolvable prereq will fail
during the prepare
stage of distribution installation.
Defaults to true
.
HOME
directory. This may be overridden by
setting the PERL5_CPANPLUS_HOME
environment variable, see
the CPANPLUS::Config::HomeEnv manpage for more details.
perldoc Module::Build
for details. Defaults to an empty string.
http://testers.cpan.org
. Defaults to 'false'.
http://testers.cpan.org
. An empty string will use your system
settings. Defaults to an empty string.
cpan2dist
or CPANPLUS::Dist
for details. An empty string will not use any
package building software. Defaults to an empty string.
from
address
when sending emails. Defaults to an example.com
address.
CUSTOM MODULE SOURCES
in CPANPLUS::Backend
for
details on how to use them.
Defaults to true
base
directory. Defaults to an empty string.
base
directory. Defaults to an empty string.
@INC
when CPANPLUS
starts up. Defaults to an empty array reference.
make
program
when invoked. Defaults to an empty string.
perl Makefile.PL
when invoked. Defaults to an empty string.
Digest::SHA
installed, 'false' otherwise.
CPANPLUS
' source files should be
updated or not. Defaults to 'false'.
Compress::Zlib
installed (as that would mean we could not extract
.tar.gz
files)
Makefile.PL
over a
Build.PL
file if both are present. Defaults to 'true', unless
the perl version is at least 5.10.1 or appropriate versions of the Module::Build manpage
and the CPANPLUS::Dist::Build manpage are available.
0 Do not install 1 Install 2 Ask 3 Ignore (dangerous, install will probably fail!)
The default is to ask.
CPANPLUS
in interactive mode.
Defaults to CPANPLUS::Shell::Default
, the default CPANPLUS shell.
gpg
or Crypt::OpenPGP
installed, 'false' otherwise.
Storable
to write compiled
source file information to disk. This makes for faster startup and look
up times, but takes extra diskspace. Defaults to 'true' if you have
Storable
installed and 'false' if you don't.
CPANPLUS
runs in verbose mode.
Defaults to 'true' if you have the environment variable
PERL5_CPANPLUS_VERBOSE
set to true, 'false' otherwise.
It is recommended you run with verbose enabled, but it is disabled for historical reasons.
CPANPLUS::Internals::Source
. Default to CPANPLUS::Internals::Source::Memory
.
Test::Reporter
. If you'd want to enable TLS for example, you'd
set it to:
{ transport => 'Net::SMTP::TLS', transport_args => [ User => 'Joe', Password => '123' ], }
make
binary. Looks for the make
program used to build perl or failing that, a make
in your path.
sudo
binary if your install path
requires super user permissions. Looks for sudo
in your path, or
remains empty if you do not require super user permissions to install.
A string holding the path to the cpanp-run-perl
utility bundled
with CPANPLUS, which is used to enable autoflushing in spawned processes.
Please report bugs or other issues to <bug-cpanplus@rt.cpan.org
This module by Jos Boumans <kane@cpan.org>.
The CPAN++ interface (of which this module is a part of) is copyright (c) 2001 - 2007, Jos Boumans <kane@cpan.org>. All rights reserved.
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
the CPANPLUS::Backend manpage, the CPANPLUS::Configure::Setup manpage, the CPANPLUS::Configure manpage
CPANPLUS::Config - configuration defaults and heuristics for CPANPLUS |