pkg_deb v0.1.1 PkgDeb.Utils.Config
This module is used to retrieve basic information for use with configuration
Link to this section Summary
Functions
Use uname to detect the architecture we're currently building for
Return a package name to use; either the provided package_name
from
configuration, or a sanitized version of name
as a default.
Get the path to a file located in the rel directory of the current project. You can pass either a file name, or a list of directories to a file.
Retrieve the Application root, which is used when referring to relative files in the library (such as templates)
Sanitize certain elements so that they are filesystem safe, and fit within the Debian policy / conventions.
Validate the provided package name and return it, or throw an error if it doesn't match against expectations.
Link to this section Functions
detect_arch()
Use uname to detect the architecture we're currently building for
package_name(config)
Return a package name to use; either the provided package_name
from
configuration, or a sanitized version of name
as a default.
rel_dest_path()
rel_dest_path(files)
Get the path to a file located in the rel directory of the current project. You can pass either a file name, or a list of directories to a file.
root()
Retrieve the Application root, which is used when referring to relative files in the library (such as templates)
sanitize_config(config)
Sanitize certain elements so that they are filesystem safe, and fit within the Debian policy / conventions.
validate_package_name(name)
Validate the provided package name and return it, or throw an error if it doesn't match against expectations.