App::Packager - Abstraction for Packagers
App::Packager provides an abstract interface to a number of common packagers, trying to catch as much common behaviour as possible.
The main purpose is to have uniform access to application specific resources.
Supported packagers are PAR::Packer, Cava::Packager and unpackaged. In the latter case, the packager functions are emulated via Cava::Packager which provides fallback for unpackaged use.
For example:
use App::Packager; print "My packager is: ", App::Packager::Packager(), "\n";
No functions are exported, they must be called with explicit package name.
Returns the name of the actual packager, or undef if unpackaged.
Returns the version of the actual packager, or "N/A" if unpackaged.
Returns true if the application was packaged.
Note that it is usually easier, and safer, to use $App::Packager::PACKAGED for testing since that will work even if App::Packager is not available.
Returns the path name of the application resources directory.
Returns the file name of the application resource.
Returns the file name of the user specific resource.
Johan Vromans, <JV at CPAN dot org>
<JV at CPAN dot org>
Please report any bugs or feature requests to bug-app-packager at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-Packager. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-app-packager at rt.cpan.org
Development of this module takes place on GitHub: https://github.com/sciurius/perl-App-Packager.
You can find documentation for this module with the perldoc command.
perldoc App::Packager
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-Packager
Search CPAN
http://search.cpan.org/dist/App-Packager
This module was inspired by Mark Dootson;s Cava packager.
Copyright 2017 Johan Vromans, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Packager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Packager
CPAN shell
perl -MCPAN -e shell install App::Packager
For more information on module installation, please visit the detailed CPAN module installation guide.