X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fcardfortress.pm;h=7ff728081535fa2d756753898a2ed7b92a45c2b6;hb=d81d88c7ec4a69aaf14a9da961e16c8af630fd68;hp=4916a6ee03cd3e80f9adae6f48913b169781977a;hpb=1318909d7eb16d736cbfb9f641eecccb00d4636c;p=freeside.git diff --git a/FS/FS/part_export/cardfortress.pm b/FS/FS/part_export/cardfortress.pm index 4916a6ee0..7ff728081 100644 --- a/FS/FS/part_export/cardfortress.pm +++ b/FS/FS/part_export/cardfortress.pm @@ -56,9 +56,24 @@ sub _export_replace { } 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;