| 1 | package Run::Parts::Debian; | ||||||||||
| 2 | |||||||||||
| 3 | # ABSTRACT: Perl interface to Debian's run-parts tool | ||||||||||
| 4 | |||||||||||
| 5 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 5 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 5 | ▶ | use Run::Parts::Common; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 5 | our $VERSION = '0.09'; # VERSION generated by DZP::OurPkgVersion | |||||||||
| 12 | |||||||||||
| 13 | |||||||||||
| 14 | 5 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 15 | 5 | my $self = {}; | |||||||||
| 16 | 5 | bless($self, shift); | |||||||||
| 17 | 5 | $self->{dir} = shift; | |||||||||
| 18 | |||||||||||
| 19 | 5 | return $self; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 26 | ▶ | sub run_parts_command { | ||||||||
|
Subroutine
run_parts_command: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 24 | 26 | my $self = shift; | |||||||||
| 25 | 26 | my $rp_cmd = shift; | |||||||||
| 26 | |||||||||||
| 27 | my $command = | ||||||||||
| 28 | "/bin/run-parts " . | ||||||||||
| 29 | ($rp_cmd ? "'--$rp_cmd'" : '') . | ||||||||||
| 30 | 26 | ▶ | " '".$self->{dir}."'"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | |||||||||||
| 32 | 26 | return chomped_lines(`$command`); | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | |||||||||||
| 36 | 5 | q<debian/rules>; # End of Run::Parts::Debian | |||||||||
| 37 | |||||||||||
| 38 | __END__ | ||||||||||