-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
585 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,21 @@ sub path_spec_str { | |
return $path; | ||
} | ||
|
||
sub path_spec_checksum { | ||
my ($self, $path_spec) = @_; | ||
|
||
defined $path_spec or | ||
$self->logconfess('A defined path_spec argument is required'); | ||
|
||
ref $path_spec eq 'HASH' or | ||
$self->logconfess('A HashRef path_spec argument is required'); | ||
|
||
exists $path_spec->{checksum} or | ||
$self->logconfess('The path_spec argument did not have a "checksum" key'); | ||
|
||
return $path_spec->{checksum}; | ||
} | ||
|
||
__PACKAGE__->meta->make_immutable; | ||
|
||
no Moose; | ||
|
@@ -101,7 +116,7 @@ Keith James <[email protected]> | |
=head1 COPYRIGHT AND DISCLAIMER | ||
Copyright (C) 2014 Genome Research Limited. All Rights Reserved. | ||
Copyright (C) 2014, 2015 Genome Research Limited. All Rights Reserved. | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the Perl Artistic License or the GNU General | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.