Publican::CreateBrand.3pm

Langue: en

Autres versions - même langue

Version: 2010-10-06 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Publican::CreateBrand - A module for generating new brand boilerplate.

VERSION

This document describes Publican::CreateBrand version 0.1

SYNOPSIS

     use Publican::CreateBrand;
 
     my $creator = Publican::CreateBrand->new({name => 'foo'});
     $creator->create();
 
 

DESCRIPTION

     Creates a new Brand for use with the publican package
 
 

INTERFACE

new

Create a Publican object set.

Parameters:

    name              Brand Name        (Required)
 
 

create

Create all the required files.

xml_files

Create XML files.

conf_files

Create configuration files.

images

Create images dir and all the default images in svg and png format.

default_images

Generate images with default text in SVG and PNG formats.

DIAGNOSTICS

unknown args %s
All subs with named parameters will return this error when unexpected named arguments are provided.
%s is a required parameter
Any sub with a mandatory parameter will return this error if the parameter is undef.
Can't create brand, dirctory %s exists!
When creating a Brand a directory is created with the same name as the brand. If a directory with that name is in the current directory the creation will fail.
Invalid language supplied: %s
The language supplied is not a valid language.
Can't create directory: %s
Could not open %s for output!
Can't write file
Can't open SVG file %s

CONFIGURATION AND ENVIRONMENT

Publican::CreateBrand requires no configuration files or environment variables.

DEPENDENCIES

Carp version Config::Simple File::Path File::pushd DateTime Image::Magick Publican Term::ANSIColor

INCOMPATIBILITIES

None reported.

BUGS AND LIMITATIONS

None reported.

Please report any bugs or feature requests to "publican-list@redhat.com", or through the web interface at <https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedora&amp;version=rawhide&amp;component=publican>.

AUTHOR

Jeff Fearn "<jfearn@redhat.com>"