NAME

App::hopen::G::OutputPerFileCmd - hopen Cmd that makes outputs for each input separately

SYNOPSIS

In a Cmd package:

use parent 'App::hopen::G::OutputPerFileCmd';
use Class::Tiny;
sub _process_input {
    my ($self, $source_asset) = @_;
        # $source_asset is an App::hopen::Asset
    ... # Return a list of [$asset, $how] arrayrefs
}

FUNCTIONS

_process_input

Makes output assets for a given input asset. Must be implemented by subclasses. Called as:

$self->_process_input(-asset=>$asset, -visitor=>$visitor);

Returns a list of arrayrefs of [$asset, $how]. $how defaults to undef.

_should_act

Returns truthy if "_process_input" should be called. Must be implemented by subclasses. Called as:

$self->_should_act(-phase=>$phase, -visitor=>$visitor);

_run

Creates the output list by calling "_process_input".