Public...teBrand(3pm)

πŸ’– Publican::CreateBrand β€” the manual, but make it cute ✨

okay bestie, so this is the page for Publican::CreateBrand(3pm), and honestly? it's giving "tiny module, big job." it lives in the User Contributed Perl Documentation, and it's here to help you spin up brand new brand boilerplate. no cap. πŸŽ€


🌸 NAME 🌸

Publican::CreateBrand β€” a whole module for generating new brand boilerplate, fr fr. πŸ’…


✨ SYNOPSIS ✨

like, this is literally all it takes:

use Publican::CreateBrand;

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

look at her go. she's iconic. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

she creates a new Brand for use with the publican package. that's the whole vibe. 🫢


πŸ’œ INTERFACE πŸ’œ

new

creates a Publican object set. yes bestie, that's the sentence. 🌈

parameters:

  • name β€” the Brand Name. it is Required. do not skip it, i'm begging. 😭

create

creates all the required files. all of them. every single one. 🧚

xml_files

creates XML files. πŸ’–

conf_files

creates configuration files. βš™οΈβœ¨

images

creates the images dir plus all the default images in svg and png format. two formats, one queen. πŸ‘‘


πŸ’€ DIAGNOSTICS πŸ’€

okay so these are the little messages she throws when things go sideways. pay attention, iykyk.

  • "unknown args %s" β€” every sub with named parameters returns this error when you hand it unexpected named arguments. she does not like surprises. πŸ™ˆ
  • "%s is a required parameter" β€” any sub with a mandatory parameter returns this when that parameter is undef. ma'am. give her the parameter.
  • ""Can't create brand, directory %s exists!" β€” when creating a Brand, a directory gets created with the same name as the brand. if a directory with that name is already sitting in the current directory, the creation will fail. it's giving "that name is taken." πŸ’…
  • "Invalid language supplied: %s" β€” the language you supplied is not a valid language. bestie that is not a language. 😭
  • "Can't create directory: %s"
  • "Could not open %s for output!"
  • "Can't write file"
  • "Can't open SVG file %s"
ngl those last four are just listed there with no extra explanation in the original, so i'm not about to invent lore for them. they are what they are. πŸ“

🌟 CONFIGURATION AND ENVIRONMENT 🌟

Publican::CreateBrand requires no configuration files and no environment variables. low maintenance queen. we love that for her. πŸ’œ


πŸ”₯ DEPENDENCIES πŸ”₯

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

her whole squad. 🫢


πŸ™ˆ INCOMPATIBILITIES πŸ™ˆ

None reported. no drama. periodt. ✨


😭 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=Publican&component=publican

πŸ‘‘ AUTHOR πŸ‘‘

Jeff Fearn <jfearn@redhat.com> β€” the icon, the moment, the legend. πŸ’…


and that's the whole page, bestie! this one shipped as perl v5.26.2 back on 2018-07-08, from the User Contributed Perl Documentation files, and it's still out here helping people make brands. slay forever. πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from