AnyEvent::Subprocess::Running::Delegate::CaptureHandle - Running part of the CaptureHandle delegate


AnyEvent-Subprocess documentation Contained in the AnyEvent-Subprocess distribution.

Index


Code Index:

NAME

Top

AnyEvent::Subprocess::Running::Delegate::CaptureHandle - Running part of the CaptureHandle delegate

VERSION

Top

version 1.102912

AUTHOR

Top

Jonathan Rockway <jrockway@cpan.org>

COPYRIGHT AND LICENSE

Top


AnyEvent-Subprocess documentation Contained in the AnyEvent-Subprocess distribution.

package AnyEvent::Subprocess::Running::Delegate::CaptureHandle;
BEGIN {
  $AnyEvent::Subprocess::Running::Delegate::CaptureHandle::VERSION = '1.102912';
}
# ABSTRACT: Running part of the CaptureHandle delegate
use Moose;
use AnyEvent::Subprocess::Done::Delegate::CaptureHandle;

with 'AnyEvent::Subprocess::Running::Delegate';

has 'output' => (
    traits   => ['String'],
    init_arg => undef,
    is       => 'ro',
    isa      => 'Str',
    default  => '',
    handles  => {
        '_append_output' => 'append',
    },
);

sub build_done_delegates {
    my ($self, $running) = @_;

    return AnyEvent::Subprocess::Done::Delegate::CaptureHandle->new(
        name   => $self->name,
        output => $self->output,
    );
}

sub build_events {}
sub completion_hook {}

__PACKAGE__->meta->make_immutable;

1;

__END__