-
-
17 Apr 2022 17:40:25 UTC
- Distribution: CPAN
- Module version: 0.02
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (209)
- Testers (388 / 23 / 0)
- Kwalitee
Bus factor: 5- % Coverage
- License: perl_5
- Perl: v5.6.2
- Activity
24 month- Tools
- Download (872.44KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Archive::Tar
- CPAN::Meta
- CPAN::Meta::Requirements
- CPAN::Meta::YAML
- CPAN::Perl::Releases
- Compress::Bzip2
- Compress::Zlib
- Data::Dumper
- Digest::MD5
- Digest::SHA
- Exporter
- Exporter::Heavy
- ExtUtils::CBuilder
- File::Copy
- File::HomeDir
- File::Spec
- File::Temp
- File::Which
- HTTP::Tiny
- IO::Compress::Base
- IO::Zlib
- JSON::PP
- LWP::UserAgent
- Log::Log4perl
- MIME::Base64
- Module::Build
- Module::Signature
- Net::FTP
- Net::Ping
- Parse::CPAN::Meta
- Pod::Perldoc
- Pod::Perldoc::ToMan
- Scalar::Util
- Socket
- Term::ReadKey
- Test::Harness
- Test::More
- Text::Glob
- Text::ParseWords
- Text::Wrap
- YAML
- YAML::Syck
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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 # if it is the last in plugin_list: o conf plugin_list pop # otherwise, determine the index to splice: o conf plugin_list # and then use splice, e.g. to splice position 3: o conf plugin_list splice 3 1
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 ino 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>
Module Install Instructions
To install CPAN, copy and paste the appropriate command in to your terminal.
cpanm CPAN
perl -MCPAN -e shell install CPAN
For more information on module installation, please visit the detailed CPAN module installation guide.