| 1 | ########################################### | ||||||||||
| 2 | package GitMeta; | ||||||||||
| 3 | ########################################### | ||||||||||
| 4 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 3 | ▶ | use Sysadm::Install qw(:all); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 3 | our $VERSION = "0.05"; | |||||||||
| 9 | |||||||||||
| 10 | ########################################### | ||||||||||
| 11 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 12 | ########################################### | ||||||||||
| 13 | 1 | my($class, %options) = @_; | |||||||||
| 14 | |||||||||||
| 15 | 1 | my $self = { %options }; | |||||||||
| 16 | 1 | bless $self, $class; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | ########################################### | ||||||||||
| 20 | 0 | ▶ | sub expand { | ||||||||
|
Subroutine
expand: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 21 | ########################################### | ||||||||||
| 22 | 0 | die "You need to implement 'expand'"; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | ########################################### | ||||||||||
| 26 | 0 | ▶ | sub param_check { | ||||||||
|
Subroutine
param_check: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 27 | ########################################### | ||||||||||
| 28 | 0 | my($self, @params) = @_; | |||||||||
| 29 | |||||||||||
| 30 | 0 | for my $param (@params) { | |||||||||
| 31 | 0 | ▶ | if(! exists $self->{ $param }) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | 0 | die "Parameter $param missing"; | |||||||||
| 33 | } | ||||||||||
| 34 | } | ||||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | ########################################### | ||||||||||
| 38 | 0 | ▶ | sub health_check { | ||||||||
|
Subroutine
health_check: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 39 | ########################################### | ||||||||||
| 40 | |||||||||||
| 41 | # Check if we have git in $PATH | ||||||||||
| 42 | 0 | my( $stdout, $stderr, $rc ) = tap "git", "--version"; | |||||||||
| 43 | |||||||||||
| 44 | 0 | ▶ | if( $rc ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 45 | 0 | die "git not found in path"; | |||||||||
| 46 | } | ||||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | 3 | 1; | |||||||||
| 50 | |||||||||||
| 51 | __END__ | ||||||||||