Footprintless::CommandRunner - A contract for an command runner
version 1.27
The abstract base class for all command runners.
This class defines the contract that all command runners must adhere to.
Implementation classes should implement _run($command,
%runner_options)
.
See implementation classes.
Returns the last command run by this command runner.
Returns the message from die
,
if the command runner died unexpectedly.
Returns the exit code from running the command.
Returns the text written to STDERR
.
This will only be available if the command was run without any err_???
options.
See run for more details.
Returns the text written to STDOUT
.
This will only be available if the command was run without any out_???
options.
See run for more details.
Runs $command
.
The supported runner options are:
A sub that will be called once for each line written to STDERR
.
The only argument to the sub will be $line
.
A handle to use as STDERR
for the command.
A handle to use as STDIN
for the command.
A sub that will be called once for each line written to STDOUT
.
The only argument to the sub will be $line
.
A handle to use as STDOUT
for the command.
Calls run and will die with an Footprintless::CommandRunner::ExecutionException if the exit code is non-zero.
Lucas Theisen <lucastheisen@pastdev.com>
This software is copyright (c) 2016 by Lucas Theisen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Please see those modules/websites for more information related to this module.