| 1 | package Minilla::Profile::ModuleBuild; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use parent qw(Minilla::Profile::Base); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | ▶ | use File::Spec::Functions qw(catfile); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | ▶ | use File::Path qw(mkpath); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use File::Basename qw(dirname); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use CPAN::Meta; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use Data::Section::Simple qw(get_data_section); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ▶ | use File::pushd; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 1 | ▶ | use Minilla::License::Perl_5; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 0 | ▶ | sub generate { |
|
Subroutine
generate: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 18 | 0 | my $self = shift; | |
| 19 | |||
| 20 | 0 | $self->render('Module.pm', catfile('lib', $self->path)); | |
| 21 | |||
| 22 | 0 | $self->render('Changes'); | |
| 23 | 0 | $self->render('t/00_compile.t'); | |
| 24 | 0 | $self->render('github_actions_test.yml', catfile('.github', 'workflows', 'test.yml')); | |
| 25 | |||
| 26 | 0 | $self->render('.gitignore'); | |
| 27 | 0 | $self->write_file('LICENSE', Minilla::License::Perl_5->new( | |
| 28 | holder => sprintf('%s <%s>', $self->author, $self->email) | ||
| 29 | )->fulltext); | ||
| 30 | |||
| 31 | 0 | $self->render('cpanfile'); | |
| 32 | } | ||
| 33 | |||
| 34 | 1 | 1; | |
| 35 | __DATA__ | ||