| 1 | package Archive::BagIt::Plugin::SHA256; | ||
| 2 | |||
| 3 | 3 | our $VERSION = '0.006'; # VERSION | |
| 4 | # ABSTRACT: The main module to handle bags. | ||
| 5 | |||
| 6 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 3 | ▶ | use Carp qw( croak ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 3 | with 'Archive::BagIt::Role::Algorithm', | |
| 12 | 'Archive::BagIt::Role::Manifest', | ||
| 13 | 'Archive::BagIt::Role::OpenSSL'; | ||
| 14 | |||
| 15 | 2 | has '+name' => ( | |
| 16 | is => 'ro', | ||
| 17 | #isa => 'Str', | ||
| 18 | default => 'sha256', | ||
| 19 | ); | ||
| 20 | |||
| 21 | 14 | ▶ | sub BUILD { |
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 22 | 15 | my ($self) = @_; | |
| 23 | 15 | $self->bagit->plugins( { $self->plugin_name => $self }); | |
| 24 | 15 | return 1; | |
| 25 | } | ||
| 26 | |||
| 27 | 2 | __PACKAGE__->meta->make_immutable; | |
| 28 | |||
| 29 | 2 | 1; | |
| 30 | |||
| 31 | __END__ | ||