MyCPAN::Indexer::Reporter::AsYAML - Save the result as a YAML file
Use this in backpan_indexer.pl by specifying it as the reporter class:
# in backpan_indexer.config reporter_class MyCPAN::Indexer::Reporter::AsYAML
This class takes the result of examining a distribution and saves it.
get_reporter sets the reporter key in the $Notes hash reference. The value is a code reference that takes the information collected about a distribution and dumps it as a YAML file.
get_reporter
reporter
$Notes
See MyCPAN::Indexer::Tutorial for details about what get_reporter expects and should do.
Returns the extension for reports from this reporter. Since we're making YAML files, that's yml.
yml
Right before backpan_indexer.pl is about to finish, it calls this method to give the reporter a chance to do something at the end. In this case it does nothing.
This code is in Github:
git://github.com/briandfoy/mycpan-indexer.git
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Copyright (c) 2008-2009, brian d foy, All Rights Reserved.
You may redistribute this under the same terms as Perl itself.
To install MyCPAN::Indexer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MyCPAN::Indexer
CPAN shell
perl -MCPAN -e shell install MyCPAN::Indexer
For more information on module installation, please visit the detailed CPAN module installation guide.