| 1 |
Dist::Zilla::Role::Bootstrap |
| 2 |
|
| 3 |
This module is a role that aims to be consumed by plugins that want to |
| 4 |
perform some very early bootstrap operation that may affect the loading |
| 5 |
environment of successive plugins, especially with regards to plugins |
| 6 |
that may wish to build with themselves, either by consuming the source |
| 7 |
tree itself, or by consuming a previous built iteration. |
| 8 |
|
| 9 |
Implementation is quite simple: |
| 10 |
|
| 11 |
1. "with" this role in your plugin |
| 12 |
with 'Dist::Zilla::Role::Bootstrap' |
| 13 |
|
| 14 |
2. Implement the "bootstrap" sub. |
| 15 |
sub bootstrap { |
| 16 |
my ( $self ) = @_; |
| 17 |
} |
| 18 |
|
| 19 |
3. *Optional*: Fetch the discovered "bootstap" root via: |
| 20 |
$self->_bootstap_root |
| 21 |
|
| 22 |
4. *Optional*: Load some path into @INC via: |
| 23 |
$self->_add_inc($path) |
| 24 |
|
| 25 |
INSTALLATION |
| 26 |
|
| 27 |
This is a Perl module distribution. It should be installed with whichever |
| 28 |
tool you use to manage your installation of Perl, e.g. any of |
| 29 |
|
| 30 |
cpanm . |
| 31 |
cpan . |
| 32 |
cpanp -i . |
| 33 |
|
| 34 |
Consult http://www.cpan.org/modules/INSTALL.html for further instruction. |
| 35 |
Should you wish to install this module manually, the procedure is |
| 36 |
|
| 37 |
perl Makefile.PL |
| 38 |
make |
| 39 |
make test |
| 40 |
make install |
| 41 |
|
| 42 |
COPYRIGHT AND LICENSE |
| 43 |
|
| 44 |
This software is copyright (c) 2017 by Kent Fredric |
| 45 |
<[email protected]>. |
| 46 |
|
| 47 |
This is free software; you can redistribute it and/or modify it under |
| 48 |
the same terms as the Perl 5 programming language system itself. |