remove vestigial Net::OpenSSH code
[scpubgit/Object-Remote.git] / lib / Object / Remote / Connector / SSH.pm
CommitLineData
47c83a13 1package Object::Remote::Connector::SSH;
2
84b04178 3use Object::Remote::ModuleSender;
8ba4f2e3 4use Object::Remote::Handle;
47c83a13 5use Moo;
6
a9fdb55e 7with 'Object::Remote::Role::Connector::PerlInterpreter';
47c83a13 8
a9fdb55e 9around _perl_command => sub {
10 my ($orig, $self, $target) = @_;
11 return 'ssh', $target, $self->$orig($target);
84b04178 12};
13
84b04178 14push @Object::Remote::Connection::Guess, sub {
15 for ($_[0]) {
16 # 0-9 a-z _ - first char, those or . subsequent - hostnamish
a9fdb55e 17 if (defined and !ref and /^(?:.*?\@)?[\w\-][\w\-\.]/) {
84b04178 18 return __PACKAGE__->new->connect($_[0]);
19 }
20 }
21 return;
22};
23
47c83a13 241;