Config::Generator::File - Config::Generator file support
This module eases the manipulation of files, directories and symbolic links.
The goal is to perform all the file related operations through this module so that there is a consistent handling of the Config::Generator variables: $NoAction, $RootDir and $Verbosity.
$NoAction
$RootDir
$Verbosity
In addition, rpm compatible spec files snippets can be generated and the yacg command can use a "manifest" file to record which files it did create. This is required in order to be able to "clean out the junk", see yacg's --clean option.
This module provides the following functions (none of them being exported by default):
make sure the given PATH is a directory
make sure the given PATH is a file with the given CONTENTS
make sure the given PATH is a symbolic link with the given TARGET
make sure the given PATH has the given numerical MODE
make sure the given PATH is owned by the given USER
make sure the given PATH is owned by the given GROUP
return the list of all the files that have been manipulated by this module
return the list of all the files that have been manipulated by this module, in a format compatible with rpm's spec %files
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
write the list of all the files that have been manipulated by this module in a "spec" file at the given PATH
Lionel Cons http://cern.ch/lionel.cons
Copyright (C) CERN 2013-2014
To install Config::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Generator
CPAN shell
perl -MCPAN -e shell install Config::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.