Publican::CreateBrand(3pm)

Publican::CreateBrand3pm

A module for generating new brand boilerplate.

Usage

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

Overview

    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.

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, directory %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 Publican Term::ANSIColor

Incompatibilities

None reported.

Bugs and limitations

None reported.

Please report any bugs or feature requests to "[email protected]", or through the web interface at <https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Publican&amp;component=publican>.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10–12
  6. 13

Author

Jeff Fearn "<[email protected]>"

From publican 4.3.2-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.