X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fcardfortress.pm;h=7ff728081535fa2d756753898a2ed7b92a45c2b6;hb=e46ea78f6d233fbf0314d1386237bd225ef29035;hp=4916a6ee03cd3e80f9adae6f48913b169781977a;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;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;