Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 29 lines (24 sloc) 1.096 kB
2ea8fb8 @rcaputo Parameterize events the roles can emit. Create eg-15-ipc-run.pl and a…
authored
1 package Runner;
5b0127b @rcaputo Remove emit() from roles.
authored
2 # vim: ts=2 sw=2 noexpandtab
3
2ea8fb8 @rcaputo Parameterize events the roles can emit. Create eg-15-ipc-run.pl and a…
authored
4 use Moose;
5 extends 'Reflex::Base';
5b0127b @rcaputo Remove emit() from roles.
authored
6 use Reflex::Callbacks qw(make_emitter make_terminal_emitter);
2ea8fb8 @rcaputo Parameterize events the roles can emit. Create eg-15-ipc-run.pl and a…
authored
7
8 has [qw(stdin stdout stderr)] => ( isa => 'FileHandle', is => 'ro' );
9 has pid => ( isa => 'Int', is => 'ro' );
5b0127b @rcaputo Remove emit() from roles.
authored
10 has active => ( isa => 'Bool', is => 'ro', default => 1 );
2ea8fb8 @rcaputo Parameterize events the roles can emit. Create eg-15-ipc-run.pl and a…
authored
11
12 with 'RunnerRole' => {
5b0127b @rcaputo Remove emit() from roles.
authored
13 att_active => 'active',
14 att_pid => 'pid',
15 att_stderr => 'stderr',
16 att_stdin => 'stdin',
17 att_stdout => 'stdout',
18 cb_exit => make_terminal_emitter(on_exit => "exit"),
19 cb_stderr_closed => make_emitter(on_stderr_closed => "stderr_closed"),
20 cb_stderr_data => make_emitter(on_stderr_data => "stderr_data"),
21 cb_stderr_error => make_emitter(on_stderr_error => "stderr_error"),
22 cb_stdin_error => make_emitter(on_stdin_error => "stdin_error"),
23 cb_stdout_closed => make_emitter(on_stdout_closed => "stdout_closed"),
24 cb_stdout_data => make_emitter(on_stdout_data => "stdout_data"),
25 cb_stdout_error => make_emitter(on_stdout_error => "stdout_error"),
2ea8fb8 @rcaputo Parameterize events the roles can emit. Create eg-15-ipc-run.pl and a…
authored
26 };
27
28 1;
Something went wrong with that request. Please try again.