Dist::Zilla::Plugin::NameFromDirectory - Guess distribution name from the current directory
[NameFromDirectory]
Dist::Zilla::Plugin::NameFromDirectory is a Dist::Zilla plugin to guess distribution name (when it's not set in dist.ini) from the current working directory.
dist.ini
Prefixes such as perl- and p5-, as well as the postfix .pm and -pm will be automatically trimmed. The following directory names are all recognized as Foo-Bar.
perl-
p5-
.pm
-pm
Foo-Bar
Foo-Bar p5-Foo-Bar perl-Foo-Bar Foo-Bar-pm
It is designed to be used with Plugin bundle so that your dist.ini doesn't need to contain per-project name anymore.
Even when this plugin is used, you can always override the name by specifying it in dist.ini.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
Copyright 2013- Tatsuhiko Miyagawa
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Dist::Zilla
To install Dist::Zilla::Plugin::NameFromDirectory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::NameFromDirectory
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::NameFromDirectory
For more information on module installation, please visit the detailed CPAN module installation guide.