NAME

NCustom::Config - configuration file for NCustom


SYNOPSIS

  use NCustom::Config;


ABSTRACT

  Configuration file for NCustom.


DESCRIPTION

Useful only with NCustom.

NCustom::Config provides configuration for NCustom. This is affected by NCustom ``using'' NCustom::Config, whereupon NCustom::Config creates and sets configuration variables in NCustom's namespace.

Should a user of NCustom require personalised configuration, they may copy part or all (depending on whether they wish to over ride part or all of the configuration settings) of NCustom::Config to ~/.ncustom/NCustom/MyConfig.pm. The file must be a perl module. If such a file exists is will be ``used'' by NCustom after it has ``used'' NCustom::Config.

EXPORT

None - but it does create and set variables within the NCustom namespace.

CONFIGURATION VARIABLES

Following is a descriptin of configuration variables.

test_data1, test_data2, test_url1
Ignore these. They are for internal use only (make test).

base_dir
This is the base directory for NCustom. It is within here that personalised configuration file will be searched for. It is within here that transactions shall be archived.

save_dir
The directory into which transactions shall be archived. So that they may be later undone.

tmp_dir
NCustom requires a temporary directory on occassion. It makes troubleshooting easier if we know where that is.

src_fqdn
The fully qualified domain name of the default server for fetching source such as NCustom files, or rpms from. Not using fully qualified domain name may affect fetching of source for some utilities for some command line options (such as dont follow offsite links).

default_src
A reference to an anonymous array that contains which directories or urls to look in to find files for whom a path name was not given.

get_url
A subroutine ref for fetching the file(s) from a particular url, and placing them in a given target directory.

Simple needs should be met by the provided subroutine. Desired behaviour (such as proxy configuration or reference to passwords) are easily met by adding command line arguments to the provided subroutine's system call. Complex needs would require recoding of the subroutine.


SEE ALSO

NCustom NCustom::Config ncustom

http://baneharbinger.com/NCustom


AUTHOR

Bane Harbinger, <bane@baneharbinger.com>


COPYRIGHT AND LICENSE

Copyright 2003 by Bane Harbinger

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.