| 1 | package Net::OpenSSH::ObjectRemote; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Moo; | ||
| 7 | |||
| 8 | with 'Object::Remote::Role::Connector::PerlInterpreter'; | ||
| 9 | |||
| 10 | has net_openssh => (is => 'ro', required => 1); | ||
| 11 | |||
| 12 | sub final_perl_command { | ||
| 13 | my $self = shift; | ||
| 14 | my $perl_command = $self->perl_command; | ||
| 15 | [ $self->net_openssh->make_remote_command(@$perl_command) ]; | ||
| 16 | } | ||
| 17 | |||
| 18 | 1; |