« lib/Dist/Zilla/App/Command/configure_CSJEWELL.pm
↑ Summary
blib/lib/auto/share/module/Dist-Zilla-MintingProfile-CSJEWELL/csjewell/Module.pm »
| 1 | package Dist::Zilla::Plugin::CSJEWELL::DotFileFix; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use 5.008003; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use File::Copy qw(move); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use English qw(-no_match_vars); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | with 'Dist::Zilla::Role::AfterMint'; | |||||||||
| 8 | |||||||||||
| 9 | 1 | our $VERSION = '0.993'; | |||||||||
| 10 | |||||||||||
| 11 | 0 | ▶ | sub after_mint { | ||||||||
|
Subroutine
after_mint: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 12 | 0 | my ($self, $hash) = @_; | |||||||||
| 13 | |||||||||||
| 14 | 0 | my $root = $hash->{'mint_root'}; | |||||||||
| 15 | |||||||||||
| 16 | 0 | my $source_file = $root->child('_gitignore')->stringify(); | |||||||||
| 17 | 0 | my $dest_file = $root->child('.gitignore')->stringify(); | |||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | move($source_file, $dest_file) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | or $self->log("Could not move _gitignore to .gitignore: $OS_ERROR"); | ||||||||||
| 21 | |||||||||||
| 22 | 0 | return 1; | |||||||||
| 23 | } ## end sub after_mint | ||||||||||
| 24 | |||||||||||
| 25 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 26 | 1 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 27 | 1 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||