Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

CPAN::Plugin::Specfile

Name CPAN::Plugin::Specfile
Version 0.01
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/CPAN/Plugin/Specfile.pm
Is Core No
Search CPAN for this module CPAN::Plugin::Specfile
Documentation CPAN::Plugin::Specfile
Module Details CPAN::Plugin::Specfile

NAME

CPAN::Plugin::Specfile - Proof of concept implementation of a trivial CPAN::Plugin


SYNOPSIS

  # once in the cpan shell
  o conf plugin_list push CPAN::Plugin::Specfile
  # make permanent
  o conf commit
  # any time in the cpan shell to write a spec file
  test Acme::Meta
  # disable
  o conf plugin_list pop


DESCRIPTION

Implemented as a post-test hook, this plugin writes a specfile after every successful test run. The content is also written to the terminal.

As a side effect, the timestamps of the written specfiles reflect the linear order of all dependencies.

WARNING: This code is just a small demo how to use the plugin system of the CPAN shell, not a full fledged spec file writer. Do not expect new features in this plugin.

OPTIONS

The target directory to store the spec files in can be set using dir as in

  o conf plugin_list push CPAN::Plugin::Specfile=dir,/tmp/specfiles-000042

The default directory for this is the plugins/CPAN::Plugin::Specfile directory in the cpan_home directory.


AUTHOR

Andreas Koenig <andk@cpan.org>, Branislav Zahradnik <barney@cpan.org>

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024