use Exherbo::Packager qw/init_config gen_template/; my $config_loc = "/etc/exherbo-packager.yml" init_config($config_loc); gen_template("Exherbo::Packager");
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 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 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
William Orr <firstname.lastname@example.org>