| 1 | package Dist::Zilla::Role::CycloneDXSource; | ||
| 2 | $Dist::Zilla::Role::CycloneDXSource::VERSION = '0.001'; | ||
| 3 | 1 | ▶ | use 5.020; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 0 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 6 | with 'Dist::Zilla::Role::Plugin'; | ||
| 7 | |||
| 8 | use experimental 'signatures'; | ||
| 9 | |||
| 10 | sub add_to_bom($self, $cyclone) { | ||
| 11 | return; | ||
| 12 | } | ||
| 13 | |||
| 14 | sub cyclonedx_dist($self) { | ||
| 15 | return ref($self) =~ s/::/-/gr; | ||
| 16 | } | ||
| 17 | |||
| 18 | sub cyclonedx_resources($self) { | ||
| 19 | return {}; | ||
| 20 | } | ||
| 21 | |||
| 22 | 1; | ||
| 23 | |||
| 24 | # ABSTRACT: A role for plugins that adds information to the CycloneDX SBOM | ||
| 25 | |||
| 26 | __END__ | ||