}
sub _export_delete {
- #my( $self, $svc_x ) = (shift, shift);
+ my( $self, $svc_acct ) = (shift, shift);
+
+ #well, we're just going to disable them for now, but there you go
+
+ eval "use Net::OpenSSH;";
+ return $@ if $@;
+
+ open my $def_in, '<', '/dev/null' or die "unable to open /dev/null";
+ my $ssh = Net::OpenSSH->new( $self->machine,
+ default_stdin_fh => $def_in );
+
+ my $unused_output = $ssh->capture(
+ '/usr/local/bin/merchant_disable', map $svc_acct->$_, qw( username )
+ );
+ return $ssh->error if $ssh->error;
+
+ '';
- return 'deletion not yet supproted';
}
1;