X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fcardfortress.pm;h=8a56bfc136d1214bceeba329ac453f17d2f04cc9;hb=09c7570c160df631689d8172effc1d23a5540b30;hp=4916a6ee03cd3e80f9adae6f48913b169781977a;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984;p=freeside.git diff --git a/FS/FS/part_export/cardfortress.pm b/FS/FS/part_export/cardfortress.pm index 4916a6ee0..8a56bfc13 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 $private_key = $ssh->system( + '/usr/local/bin/merchant_disable', map $svc_acct->$_, qw( username ) + ); + return $ssh->error if $ssh->error; + + ''; - return 'deletion not yet supproted'; } 1;