Dist::Zooky::DistIni - Generates a Dist::Zilla dist.ini file
version 0.02
my $meta = { type => 'MakeMaker', name => 'Foo-Bar', version => '0.02', author => [ 'Duck Dodgers', 'Ivor Biggun' ], license => [ 'Perl_5' ], Prereq => { 'runtime' => { 'requires' => { 'Moo::Cow' => '0.19' }, }, } }; my $distini = Dist::Zooky::DistIni->new( metadata => $meta ); $distini->write();
Dist::Zooky::DistIni takes meta data and writes a Dist::Zilla dist.ini file.
dist.ini
metadata
A required attribute. This is a HASHREF of meta data it should contain the keys name, version, author, license and Prereq. See the SYNOPSIS for an example.
HASHREF
name
version
author
license
Prereq
SYNOPSIS
write
Writes a dist.ini file with the provides metadata. Takes an optional parameter, which is the filename to write to, the default being dist.ini.
Chris Williams <chris@bingosnet.co.uk>
This software is copyright (c) 2010 by Chris Williams.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zooky, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zooky
CPAN shell
perl -MCPAN -e shell install Dist::Zooky
For more information on module installation, please visit the detailed CPAN module installation guide.