Test::Smoke::App::Base - Baseclass for Test::Smoke::App::* applications.
package Test::Smoke::App::Mailer; use base 'Test::Smoke::App::Base'; sub run {...}
use Test::Smoke::App::Mailer; my $mailer = Test::Smoke::App::Mailer->new( main_options => [ Test::Smoke::App::AppOption->new( name => 'mailer', option => '=s', allow => [qw/MIME::lite sendmail/], helptext => "Mailsystem to use for sendig reports.", ), ], genral_options => [ Test::Smoke::AppOption->new( name => 'ddir', option => '=s', helptxt => "Smoke Destination Directory.", ), ], special_options => { 'MIME::Lite' => [ mserver(), msport(), msuser(), mspass(), ], 'sendmail' => [], }, ); $mailer->run();
Named:
These options are always valid.
This is a hashref with the values of the allow-array, that hold a list of Test::Smoke::AppOptions.
allow
None.
Returns a Test::Smoke::App::AppOption for 'configfile'.
Returns a Test::Smoke::App::AppOption for 'verbose'.
This process constists of three (3) steps:
This step organizes the options in a AppOptionCollection.
This step processes the arguments passed on the command line.
This step integrates the arguments, their coded-defaults, config-file values and command-line overrides.
The object-instance.
Return the value of an option.
Positional.
The value of that option if applicable.
A hash (list) of all options that apply to this instance of the app.
(c) 2002-2013, Abe Timmerman <abeltje@cpan.org> All rights reserved.
With contributions from Jarkko Hietaniemi, Merijn Brand, Campo Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop, Rich Rauenzahn, David Cantrell.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
http://www.perl.com/perl/misc/Artistic.html
http://www.gnu.org/copyleft/gpl.html
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Test::Smoke, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Smoke
CPAN shell
perl -MCPAN -e shell install Test::Smoke
For more information on module installation, please visit the detailed CPAN module installation guide.