1Publican::CreateBrand(3U)ser Contributed Perl DocumentatiPounblican::CreateBrand(3)
2
3
4
6 Publican::CreateBrand - A module for generating new brand boilerplate.
7
9 use Publican::CreateBrand;
10
11 my $creator = Publican::CreateBrand->new({name => 'foo'});
12 $creator->create();
13
15 Creates a new Brand for use with the publican package
16
18 new
19 Create a Publican object set.
20
21 Parameters:
22
23 name Brand Name (Required)
24
25 create
26 Create all the required files.
27
28 xml_files
29 Create XML files.
30
31 conf_files
32 Create configuration files.
33
34 images
35 Create images dir and all the default images in svg and png format.
36
38 "unknown args %s"
39 All subs with named parameters will return this error when
40 unexpected named arguments are provided.
41
42 "%s is a required parameter"
43 Any sub with a mandatory parameter will return this error if the
44 parameter is undef.
45
46 ""Can't create brand, directory %s exists!"
47 When creating a Brand a directory is created with the same name as
48 the brand. If a directory with that name is in the current
49 directory the creation will fail.
50
51 "Invalid language supplied: %s"
52 The language supplied is not a valid language.
53
54 "Can't create directory: %s"
55 "Could not open %s for output!"
56 "Can't write file"
57 "Can't open SVG file %s"
58
60 Publican::CreateBrand requires no configuration files or environment
61 variables.
62
64 Carp version Config::Simple File::Path File::pushd DateTime Publican
65 Term::ANSIColor
66
68 None reported.
69
71 None reported.
72
73 Please report any bugs or feature requests to
74 "publican-list@redhat.com", or through the web interface at
75 <https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Publican&component=publican>.
76
78 Jeff Fearn "<jfearn@redhat.com>"
79
80
81
82perl v5.34.0 2021-07-23 Publican::CreateBrand(3)