PkgForge::BuildTopic - A PkgForge class to represent the current build task
This documentation refers to PkgForge::BuildTopic version 1.1.10
use PkgForge::BuildTopic; my $topic = PkgForge::BuildTopic->new( job => $job, resultsdir => $results, sources => \@sources ); $topic->logger->info('Hello World'); $topic->store_logs(@files); $topic->store_results(@rpms);
This class is designed to be used internally by PkgForge::Builder classes. It exists purely for convenience to simplify passing around all the information necessary for building the current Job on a particular platform. It has methods for storing the generated files into the correct locations for a job on a particular platform.
This is the PkgForge::Job object for the current task. This attribute must be specified.
This is the directory into which pkgforge logs for a build task should be stored whilst the job is being built. This directory should be on a local file system. Once the task is finished the logfile will be copied to the results directory for the specific task (which may be on a network filesystem).
This is the directory into which results and log files will be stored for this particular build of this job on a platform. This attribute must be specified.
This is a reference to an array of PkgForge::Source objects which will be built for this task. They should be a subset of Source objects from the specified Job which are of the applicable type for the current Builder but no validity checks are done.
This is a boolean which controls whether debugging messages are printed. The default is false (i.e. no debug messages).
This is a Log::Dispatch object which can be used to send log messages to the correct location for the current build job on a particular platform.
This method will store the specified list of log files into the correct location for the current job on the current build platform.
This method will store the specified list of package files into the correct location for the current job on the current build platform.
This method can be used when you are finished with the build topic. It will copy the pkgforge build log file into the results directory for the task.
This module does not use any configuration files.
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.
Please report any bugs or problems (or praise!) to email@example.com, feedback and patches are also always very welcome.
Stephen Quinney <firstname.lastname@example.org>
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.