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

Use uname to detect the architecture we're currently building for

Link to this function

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.

Link to this function

rel_dest_path()

Link to this function

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.

Retrieve the Application root, which is used when referring to relative files in the library (such as templates)

Link to this function

sanitize_config(config)

Sanitize certain elements so that they are filesystem safe, and fit within the Debian policy / conventions.

Link to this function

validate_package_name(name)

Validate the provided package name and return it, or throw an error if it doesn't match against expectations.