William Orr > Exherbo-Packager-1.133000 > Exherbo::Packager

Download:
Exherbo-Packager-1.133000.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source  

NAME ^

Exherbo::Packager

SYNOPSIS ^

 use Exherbo::Packager qw/init_config gen_template/;
 my $config_loc = "/etc/exherbo-packager.yml"
 init_config($config_loc);
 gen_template("Exherbo::Packager");

DESCRIPTION ^

This module exports two functions, one to initialize the configuration of the packager, and the other to generate the exheres. Currently, this package only generates Exheres for Perl modules, but support for other languages is coming soon.

An OO version of this module is also planned, since exporting things into the global namespace is icky.

gen_template($modname)

gen_template takes one argument, and that is the name of the perl module you wish to generate. It will output the exheres in your current directory, in a subdirectory named by the category it chooses.

This will die with an error if the exheres already exists.

init_config

init_config($config_loc)

init_config can optionally take one argument, that being the location of the config file you wish to use for this run of the packager. Once run, it will get all of the configuration information for calls to gen_template().

BUGS ^

AUTHOR ^

William Orr <will@worrbase.com>

syntax highlighting: