NAME
OrePAN2::S3::Role::Upload - Role providing upload functionality for OrePAN2::S3
SYNOPSIS
use Role::Tiny::With;
with 'OrePAN2::S3::Role::Upload';
DESCRIPTION
OrePAN2::S3::Role::Upload is consumed by OrePAN2::S3. It provides the cmd_upload method to upload distribution tarballs directly to the DarkPAN S3 bucket without triggering index updates.
METHODS
cmd_upload( [ $distribution ] )
Validates that the given file exists and ends in .tar.gz, sets the distribution attribute on the instance, and uploads the object to S3 under <prefix>/authors/id/....
Returns $SUCCESS (1) on completion.