Business-Payment-SwissESR
view release on metacpan or search on metacpan
lib/Business/Payment/SwissESR/PaymentSlip.pm view on Meta::CPAN
has tasks => sub {
[];
};
# where lualatex can run to create the pdfs
has tmpDir => sub {
my $tmpDir = '/tmp/SwissESR'.$$;
if (not -d $tmpDir){
mkdir $tmpDir or die "Failed to create $tmpDir";
chmod 0700, $tmpDir;
}
return $tmpDir;
};
# clean up the temp data
sub DESTROY {
my $self = shift;
unlink glob $self->tmpDir.'/*';
unlink glob $self->tmpDir.'/.??*';
( run in 0.300 second using v1.01-cache-2.11-cpan-8d75d55dd25 )