Minilla/Release/Tag.pm

filter: Statementstmt 66.6% 16 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 63.6% 21 / 33 CC 2 SCAR 8.9
CC
2
Cov
62%
run
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« Minilla/Release/RegenerateFiles.pm ↑ Summary Minilla/Logger.pm »
1 package Minilla::Release::Tag;
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 Minilla::Util qw(cmd);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Minilla::Logger;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶sub run {
Subroutine run: not called CC=2 SCAR=17.9
Pod undocumented
10 0 my ($self, $project, $opts) = @_;
11  
12 0 my $ver = $project->version;
13 0 ▶ if ( $opts->{dry_run} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opts->{"dry_run"}) 0 0 0
14 0 infof("DRY-RUN. Would have tagged version $ver.\n");
15 0 return;
16 }
17  
18 0 my $tag = $project->format_tag($ver);
19 0 cmd('git', 'tag', $tag);
20 0 cmd('git', "push", 'origin', tag => $tag);
21 }
22  
23 1 1;
24  
« Minilla/Release/RegenerateFiles.pm ↑ Summary Minilla/Logger.pm »