bin/yukki-git-init

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 95.4% 21 / 22 CC 1 SCAR 0.0
CC
1
Cov
94%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/yukki-passwd ↑ Summary bin/yukki-add-user »
1 #!/usr/bin/env perl
2 5 ▶use v5.24;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 5 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 5 ▶use Yukki;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 5 ▶use Git::Repository v1.18;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 5 my $repo_name = shift;
10 5 my $remote_repo = shift;
11  
12 5 ▶die "usage: $0 repository-name [ remote-repository-url ]\n"
Branch: 1 branch
BranchTrueFalseTotal
unless $repo_name 0 5 5
13 unless $repo_name;
14  
15 5 my $app = Yukki->new;
16  
17 5 $app->model('Root')->init_repository(
18 key => $repo_name,
19 origin => $remote_repo,
20 init_from_settings => 1,
21 );
22  
23 # ABSTRACT: Initialize a git repository for use with Yukki
24 # PODNAME: yukki-git-init
25  
26 __END__
« bin/yukki-passwd ↑ Summary bin/yukki-add-user »