has ssh_command => (is => 'ro', default => sub { 'ssh' });
+#TODO properly integrate if this works
+BEGIN { $ENV{TERM} = 'dumb'; }
+
sub _build_ssh_perl_command {
my ($self) = @_;
return [
for ($_[0]) {
# 0-9 a-z _ - first char, those or . subsequent - hostnamish
if (defined and !ref and /^(?:.*?\@)?[\w\-][\w\-\.]/) {
- return __PACKAGE__->new(ssh_to => $_[0]);
+ my $host = shift(@_);
+ return __PACKAGE__->new(@_, ssh_to => $host);
}
}
return;