Config:...or::File(3)

πŸ“¦ version 1.0, in epel 9

πŸ’– NAME πŸ’–

okay bestie, this is the manual page for Config::Generator::File(3) β€” yep, from the User Contributed Perl Documentation β€” and the name line is literally:

Config::Generator::File - Config::Generator file support

periodt. now let’s get into it ✨

🌈 DESCRIPTION 🌈

This module lowkey makes handling files, directories, and symbolic links way easier 🫢. The whole goal is to do all the file-related operations through this module so there’s a consistent vibe when dealing with the Config::Generator variables: $NoAction, $RootDir, and $Verbosity. no cap, consistency is the main character here πŸ’….

On top of that, it can generate rpm-compatible spec file snippets, and the yacg command can use a "manifest" file to record which files it actually created. This is required so you can β€œclean out the junk” β€” see yacg’s --clean option. it’s giving tidy little filesystem goblin energy 🧚

✨ FUNCTIONS ✨

This module provides the following functions β€” and bestie, none of them are exported by default πŸ™ˆ:

  • ensure_directory(PATH) β€” make sure the given PATH is a directory πŸ’–
  • ensure_file(PATH, CONTENTS) β€” make sure the given PATH is a file with the given CONTENTS ✨
  • ensure_symlink(PATH, TARGET) β€” make sure the given PATH is a symbolic link with the given TARGET πŸŽ€
  • ensure_mode(PATH, MODE) β€” make sure the given PATH has the given numerical MODE πŸ”₯
  • ensure_user(PATH, USER) β€” make sure the given PATH is owned by the given USER πŸ‘‘
  • ensure_group(PATH, GROUP) β€” make sure the given PATH is owned by the given GROUP 🌸
  • files_manifest() β€” return the list of all the files that have been manipulated by this module πŸ¦‹
  • files_spec() β€” return the list of all the files that have been manipulated by this module, in a format compatible with rpm’s spec %files πŸ’…
  • handle_manifest(PATH, CLEAN) β€” write the list of all the files that have been manipulated by this module in a "manifest" file at the given PATH; if CLEAN is true, also remove all the files and directories that were in the previous manifest and are not present anymore 🧹
  • handle_spec(PATH) β€” write the list of all the files that have been manipulated by this module in a "spec" file at the given PATH ⭐

πŸ‘‘ AUTHOR πŸ‘‘

Lionel Cons <http://cern.ch/lionel.cons>

Copyright (C) CERN 2013-2016


and the cute little footer sign-off bestie: this page is from perl v5.32.1, dated 2019-07-26 β€” bye, stay slay, go touch some files πŸ’œ

πŸ“¦ where this page comes from