NAME
PITA::XML::Command - An executed command, with stored output
SYNOPSIS
# Create a command
my $dist = PITA::XML::Request->new(
cmd => 'perl Makefile.PL',
stdout => \"...",
stderr => \"...",
);
DESCRIPTION
PITA::XML::Command
is an object for holding information about a command executed during the installation process.
It holds the actual command, and the STDOUT and STDERR output.
METHODS
new
The new
constructor is used to create a new ::Command object.
It takes a set of key/value names params.
- cmd
-
The
cmd
param should contains the command that was executed, as it was sent to the operating system, as as a plain string. - stdout
-
The
stdout
param should be the resulting output toSTDOUT
, provided as a reference to aSCALAR
string. - stderr
-
The
stderr
param should be the resulting output toSTDERR
, provided as a reference to aSCALAR
string.
Returns a new PITA::XML::Command object, or dies on error.
cmd
The cmd
accessor returns the actual command sent to the system.
stdout
The stdout
accessor returns the output of the command as a SCALAR
reference.
stderr
The stderr
accessor returns the output of the command as a SCALAR
reference.
SUPPORT
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=PITA-XML
For other issues, contact the author.
AUTHOR
Adam Kennedy <adamk@cpan.org>, http://ali.as/
SEE ALSO
The Perl Image-based Testing Architecture (http://ali.as/pita/)
COPYRIGHT
Copyright 2005 - 2009 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.