it runs!
[scpubgit/Object-Remote.git] / lib / Object / Remote / Connector / Local.pm
CommitLineData
9e72f0cf 1package Object::Remote::Connector::Local;
2
3use IPC::Open2;
4use Object::Remote::Connection;
5use Moo;
6
7sub connect {
8 # XXX bin/ is wrong but meh, fix later
9 my $pid = open2(my $its_stdin, my $its_stdout, 'bin/object-remote-node')
10 or die "Couldn't start local node: $!";
11 Object::Remote::Connection->new(
12 send_to_fh => $its_stdin,
13 receive_from_fh => $its_stdout,
14 child_pid => $pid
15 );
16}
17
181;