POE::Component::SmokeBox::Backend::Base - Base class for Backend smokers.
version 0.52
package POE::Component::SmokeBox::Backend::Example; use strict; use warnings; use base qw(POE::Component::SmokeBox::Backend::Base); sub _data { my $self = shift; $self->{_data} = { check => [ '-MSome::Funky::Module', '-e', '1' ], index => [ '-MSome::Funky::Module', '-e', 'reload_indices();' ], smoke => [ '-MSome::Funky::Module', '-e', 'my $module = shift; test($module);' ], }; return; }
POE::Component::SmokeBox::Backend::Base is a base class for POE::Component::SmokeBox::Backend smoker definitions. The idea is to inherit this base class and overload the definition for the _data method to define the applicable command line arguments for check, index and smoke commands that POE::Component::SmokeBox::Backend uses.
_data
check
index
smoke
new
Creates a new POE::Component::SmokeBox::Backend::* object.
Returns an arrayref of command line options that get passed to perl to check that a particular module is installed.
perl
[ '-MSome::Funky::Module', '-e', '1' ]
Returns an arrayref of command line options that get passed to perl to perform a reindex of the module database that a smoker uses.
[ '-MSome::Funky::Module', '-e', 'reload_indices();' ]
Returns an arrayref of command line options that get passed to perl to actually test a distribution in a smoker. The distribution to smoke will be passed as $ARGV[0].
[ '-MSome::Funky::Module', '-e', 'my $module = shift; test($module);' ]
An internal method that gets called from new() to initialise the internal data of the object. Overload this method to set your data in sub-classes.
new()
POE::Component::SmokeBox::Backend
POE::Component::SmokeBox::Backend::CPAN::YACSmoke
POE::Component::SmokeBox::Backend::CPAN::Reporter
POE::Component::SmokeBox::Backend::CPANPLUS::YACSmoke
Chris Williams <chris@bingosnet.co.uk>
This software is copyright (c) 2017 by Chris Williams.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install POE::Component::SmokeBox, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::SmokeBox
CPAN shell
perl -MCPAN -e shell install POE::Component::SmokeBox
For more information on module installation, please visit the detailed CPAN module installation guide.