« lib/Dist/Zilla/Plugin/CSJEWELL/SubversionDist.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.900'; | |||||||||
| 10 | 1 | $VERSION =~ s/_//sm; | |||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub after_mint { | ||||||||
|
Subroutine
after_mint: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 14 | 0 | my ( $self, $hash ) = @_; | |||||||||
| 15 | |||||||||||
| 16 | 0 | my $root = $hash->{mint_root}; | |||||||||
| 17 | |||||||||||
| 18 | 0 | my $source_file = $root->file('_hgignore')->stringify(); | |||||||||
| 19 | 0 | my $dest_file = $root->file('.hgignore')->stringify(); | |||||||||
| 20 | |||||||||||
| 21 | 0 | ▶ | move( $source_file, $dest_file ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | or $self->log("Could not move _hgignore to .hgignore: $OS_ERROR"); | ||||||||||
| 23 | |||||||||||
| 24 | 0 | return 1; | |||||||||
| 25 | } ## end sub after_mint | ||||||||||
| 26 | |||||||||||
| 27 | 1 | __PACKAGE__->meta()->make_immutable(); | |||||||||
| 28 | 1 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 29 | 1 | 1; | |||||||||
| 30 | |||||||||||
| 31 | __END__ | ||||||||||