1CPAN::Plugin::Specfile(U3s)er Contributed Perl DocumentatCiPoAnN::Plugin::Specfile(3)
2
3
4

NAME

6       CPAN::Plugin::Specfile - Proof of concept implementation of a trivial
7       CPAN::Plugin
8

SYNOPSIS

10         # once in the cpan shell
11         o conf plugin_list push CPAN::Plugin::Specfile
12
13         # make permanent
14         o conf commit
15
16         # any time in the cpan shell to write a spec file
17         test Acme::Meta
18
19         # disable
20         # if it is the last in plugin_list:
21         o conf plugin_list pop
22         # otherwise, determine the index to splice:
23         o conf plugin_list
24         # and then use splice, e.g. to splice position 3:
25         o conf plugin_list splice 3 1
26

DESCRIPTION

28       Implemented as a post-test hook, this plugin writes a specfile after
29       every successful test run. The content is also written to the terminal.
30
31       As a side effect, the timestamps of the written specfiles reflect the
32       linear order of all dependencies.
33
34       WARNING: This code is just a small demo how to use the plugin system of
35       the CPAN shell, not a full fledged spec file writer. Do not expect new
36       features in this plugin.
37
38   OPTIONS
39       The target directory to store the spec files in can be set using "dir"
40       as in
41
42         o conf plugin_list push CPAN::Plugin::Specfile=dir,/tmp/specfiles-000042
43
44       The default directory for this is the "plugins/CPAN::Plugin::Specfile"
45       directory in the cpan_home directory.
46

AUTHOR

48       Andreas Koenig <andk@cpan.org>, Branislav Zahradnik <barney@cpan.org>
49
50
51
52perl v5.32.0                      2020-09-23         CPAN::Plugin::Specfile(3)
Impressum