PkgForge::App - Package Forge application base class.
This documentation refers to PkgForge::App version 1.4.8
package PkgForge::App::Foo; use Moose; extends 'PkgForge::App';
This is a base class for user-side Package Forge command-line applications. It adds standardised configuration file handling and holds some common attributes.
This class implements the PkgForge::ConfigFile role, see the documentation for that module for all the inherited attributes. The following additional attributes are available:
The default value for the configuration files list is overridden. The standard /etc/pkgforge/pkgforge.yml file will always be consulted, if it exists. The application-specific files in /etc/pkgforge and $HOME/.pkgforge are also examined, if they exist. For example, the submit command will examine the following configuration files, if the exist (in this order)
/etc/pkgforge/pkgforge.yml
/etc/pkgforge
$HOME/.pkgforge
submit
/etc/pkgforge/submit.yml
$HOME/.pkgforge/pkgforge.yml
$HOME/.pkgforge/submit.yml
Settings in files later in the sequence override those earlier in the list. So settings in a user's home directory override the common application settings which override the system-wide settings.
The location of the local installation of the Package Forge website. This is mainly used for printing out helpful links to the user. If not set the links are not printed.
The location of the incoming jobs directory.
The location of the accepted jobs directory.
The location of the results directory for the finished build jobs.
This class implements the PkgForge::ConfigFile role, see the documentation for that module for all the inherited methods. This class does not add any methods.
This module is powered by Moose, MooseX::Types and uses MooseX::App::Cmd. It also requires the File::HomeDir and Readonly modules.
This is the list of platforms on which we have tested this software. We expect this software to work on any Unix-like platform which is supported by Perl.
ScientificLinux5, Fedora13
Please report any bugs or problems (or praise!) to bugs@lcfg.org, feedback and patches are also always very welcome.
Stephen Quinney <squinney@inf.ed.ac.uk>
Copyright (C) 2010-2011 University of Edinburgh. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the terms of the GPL, version 2 or later.
To install PkgForge::App, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PkgForge::App
CPAN shell
perl -MCPAN -e shell install PkgForge::App
For more information on module installation, please visit the detailed CPAN module installation guide.