summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2001-04-22 01:56:15 +0000
committerivan <ivan>2001-04-22 01:56:15 +0000
commit1c14b1faec0f3f07a6d4190cf535b3ddb45075ce (patch)
tree3d9259eb4e34fb26b8d493e0184ca7838979249a /FS
parent35b2311e5702c32381a662b8172354603ea9ed1d (diff)
get rid of FS::SSH.pm (became Net::SSH and Net::SCP on CPAN)
Diffstat (limited to 'FS')
-rw-r--r--FS/FS.pm25
-rw-r--r--FS/FS/SSH.pm146
-rw-r--r--FS/FS/svc_acct.pm6
-rw-r--r--FS/FS/svc_acct_sm.pm6
-rw-r--r--FS/FS/svc_domain.pm4
-rw-r--r--FS/FS/svc_www.pm9
-rw-r--r--FS/MANIFEST1
7 files changed, 19 insertions, 178 deletions
diff --git a/FS/FS.pm b/FS/FS.pm
index 64461a5d1..3fd66b1fe 100644
--- a/FS/FS.pm
+++ b/FS/FS.pm
@@ -14,27 +14,11 @@ FS - Freeside Perl modules
=head1 SYNOPSIS
-FS is the temporary prefix for many disparate modules written for the Freeside
-ISP billing software. This includes:
-
-=head2 Database metadata classes
-
-L<FS::dbdef> - Database class
-
-L<FS::dbdef_table> - Database table class
-
-L<FS::dbdef_column> - Database column class
-
-L<FS::dbdef_colgroup> - Database column group class
-
-L<FS::dbdef_index> - Database index class
-
-L<FS::dbdef_unique> - Database unique index class
+FS is the unofficial (i.e. non-CPAN) prefix for the Perl module portion of the
+Freeside ISP billing software. This includes:
=head2 Utility classes
-L<FS::SSH> - Simple wrappers around ssh and scp commands.
-
L<FS::Conf> - Freeside configuration values
L<FS::UID> - User class (not yet OO)
@@ -127,7 +111,7 @@ The main documentation is in htdocs/docs.
=head1 VERSION
-$Id: FS.pm,v 1.3 1999-08-04 12:41:47 ivan Exp $
+$Id: FS.pm,v 1.4 2001-04-22 01:56:14 ivan Exp $
=head1 SUPPORT
@@ -155,7 +139,8 @@ Freeside distribution, which are both different from the CVS version tag for
each file, which appears under the VERSION heading.
Those modules which would be useful separately should be pulled out,
-renamed appropriately and uploaded to CPAN.
+renamed appropriately and uploaded to CPAN. So far: DBIx::DBSchema, Net::SSH
+and Net::SCP...
=cut
diff --git a/FS/FS/SSH.pm b/FS/FS/SSH.pm
deleted file mode 100644
index 84ac06b44..000000000
--- a/FS/FS/SSH.pm
+++ /dev/null
@@ -1,146 +0,0 @@
-package FS::SSH;
-
-use strict;
-use vars qw(@ISA @EXPORT_OK $ssh $scp);
-use Exporter;
-use IPC::Open2;
-use IPC::Open3;
-
-@ISA = qw(Exporter);
-@EXPORT_OK = qw(ssh scp issh iscp sshopen2 sshopen3);
-
-$ssh="ssh";
-$scp="scp";
-
-=head1 NAME
-
-FS::SSH - Subroutines to call ssh and scp
-
-=head1 SYNOPSIS
-
- use FS::SSH qw(ssh scp issh iscp sshopen2 sshopen3);
-
- ssh($host, $command);
-
- issh($host, $command);
-
- scp($source, $destination);
-
- iscp($source, $destination);
-
- sshopen2($host, $reader, $writer, $command);
-
- sshopen3($host, $reader, $writer, $error, $command);
-
-=head1 DESCRIPTION
-
- Simple wrappers around ssh and scp commands.
-
-=head1 SUBROUTINES
-
-=over 4
-
-=item ssh HOST, COMMAND
-
-Calls ssh in batch mode.
-
-=cut
-
-sub ssh {
- my($host,$command)=@_;
- my(@cmd)=($ssh, "-o", "BatchMode yes", $host, $command);
-# print join(' ',@cmd),"\n";
-#0;
- system(@cmd);
-}
-
-=item issh HOST, COMMAND
-
-Prints the ssh command to be executed, waits for the user to confirm, and
-(optionally) executes the command.
-
-=cut
-
-sub issh {
- my($host,$command)=@_;
- my(@cmd)=($ssh, $host, $command);
- print join(' ',@cmd),"\n";
- if ( &_yesno ) {
- ###print join(' ',@cmd),"\n";
- system(@cmd);
- }
-}
-
-=item scp SOURCE, DESTINATION
-
-Calls scp in batch mode.
-
-=cut
-
-sub scp {
- my($src,$dest)=@_;
- my(@cmd)=($scp,"-Bprq",$src,$dest);
-# print join(' ',@cmd),"\n";
-#0;
- system(@cmd);
-}
-
-=item iscp SOURCE, DESTINATION
-
-Prints the scp command to be executed, waits for the user to confirm, and
-(optionally) executes the command.
-
-=cut
-
-sub iscp {
- my($src,$dest)=@_;
- my(@cmd)=($scp,"-pr",$src,$dest);
- print join(' ',@cmd),"\n";
- if ( &_yesno ) {
- ###print join(' ',@cmd),"\n";
- system(@cmd);
- }
-}
-
-=item sshopen2 HOST, READER, WRITER, COMMAND
-
-Connects the supplied filehandles to the ssh process (in batch mode).
-
-=cut
-
-sub sshopen2 {
- my($host,$reader,$writer,$command)=@_;
- open2($reader,$writer,$ssh,'-o','Batchmode yes',$host,$command);
-}
-
-=item sshopen3 HOST, WRITER, READER, ERROR, COMMAND
-
-Connects the supplied filehandles to the ssh process (in batch mode).
-
-=cut
-
-sub sshopen3 {
- my($host,$writer,$reader,$error,$command)=@_;
- open3($writer,$reader,$error,$ssh,'-o','Batchmode yes',$host,$command);
-}
-
-sub _yesno {
- print "Proceed [y/N]:";
- my($x)=scalar(<STDIN>);
- $x =~ /^y/i;
-}
-
-=head1 BUGS
-
-Not OO.
-
-scp stuff should transparantly use rsync-over-ssh instead.
-
-=head1 SEE ALSO
-
-L<ssh>, L<scp>, L<IPC::Open2>, L<IPC::Open3>
-
-=cut
-
-1;
-
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm
index 9d2db0eff..79104b883 100644
--- a/FS/FS/svc_acct.pm
+++ b/FS/FS/svc_acct.pm
@@ -9,7 +9,7 @@ use Carp;
use FS::Conf;
use FS::Record qw( qsearchs fields );
use FS::svc_Common;
-use FS::SSH qw(ssh);
+use Net::SSH qw(ssh);
use FS::part_svc;
use FS::svc_acct_pop;
use FS::svc_acct_sm;
@@ -536,7 +536,7 @@ sub radius_check {
=head1 VERSION
-$Id: svc_acct.pm,v 1.14 2001-01-31 07:21:00 ivan Exp $
+$Id: svc_acct.pm,v 1.15 2001-04-22 01:56:15 ivan Exp $
=head1 BUGS
@@ -552,7 +552,7 @@ counterintuitive.
=head1 SEE ALSO
L<FS::svc_Common>, L<FS::Record>, L<FS::Conf>, L<FS::cust_svc>,
-L<FS::part_svc>, L<FS::cust_pkg>, L<FS::SSH>, L<ssh>, L<FS::svc_acct_pop>,
+L<FS::part_svc>, L<FS::cust_pkg>, L<Net::SSH>, L<ssh>, L<FS::svc_acct_pop>,
schema.html from the base documentation.
=cut
diff --git a/FS/FS/svc_acct_sm.pm b/FS/FS/svc_acct_sm.pm
index 15cf86d9b..8cec60b69 100644
--- a/FS/FS/svc_acct_sm.pm
+++ b/FS/FS/svc_acct_sm.pm
@@ -5,7 +5,7 @@ use vars qw( @ISA $nossh_hack $conf $shellmachine @qmailmachines );
use FS::Record qw( fields qsearch qsearchs );
use FS::svc_Common;
use FS::cust_svc;
-use FS::SSH qw(ssh);
+use Net::SSH qw(ssh);
use FS::Conf;
use FS::svc_acct;
use FS::svc_domain;
@@ -233,7 +233,7 @@ sub check {
=head1 VERSION
-$Id: svc_acct_sm.pm,v 1.2 2000-06-30 10:37:18 ivan Exp $
+$Id: svc_acct_sm.pm,v 1.3 2001-04-22 01:56:15 ivan Exp $
=head1 BUGS
@@ -244,7 +244,7 @@ The $recref stuff in sub check should be cleaned up.
=head1 SEE ALSO
L<FS::Record>, L<FS::Conf>, L<FS::cust_svc>, L<FS::part_svc>, L<FS::cust_pkg>,
-L<FS::svc_acct>, L<FS::svc_domain>, L<FS::SSH>, L<ssh>, L<dot-qmail>,
+L<FS::svc_acct>, L<FS::svc_domain>, L<Net::SSH>, L<ssh>, L<dot-qmail>,
schema.html from the base documentation.
=cut
diff --git a/FS/FS/svc_domain.pm b/FS/FS/svc_domain.pm
index 08bcc246e..a70c1a340 100644
--- a/FS/FS/svc_domain.pm
+++ b/FS/FS/svc_domain.pm
@@ -478,7 +478,7 @@ sub submit_internic {
=head1 VERSION
-$Id: svc_domain.pm,v 1.9 2001-04-22 01:38:39 ivan Exp $
+$Id: svc_domain.pm,v 1.10 2001-04-22 01:56:15 ivan Exp $
=head1 BUGS
@@ -495,7 +495,7 @@ The $recref stuff in sub check should be cleaned up.
=head1 SEE ALSO
L<FS::svc_Common>, L<FS::Record>, L<FS::Conf>, L<FS::cust_svc>,
-L<FS::part_svc>, L<FS::cust_pkg>, L<FS::SSH>, L<Net::Whois>, L<ssh>,
+L<FS::part_svc>, L<FS::cust_pkg>, L<Net::Whois>, L<ssh>,
L<dot-qmail>, schema.html from the base documentation, config.html from the
base documentation.
diff --git a/FS/FS/svc_www.pm b/FS/FS/svc_www.pm
index 6e741950f..bce69d6a9 100644
--- a/FS/FS/svc_www.pm
+++ b/FS/FS/svc_www.pm
@@ -8,7 +8,7 @@ use FS::svc_Common;
use FS::cust_svc;
use FS::domain_record;
use FS::svc_acct;
-use FS::SSH qw(ssh);
+use Net::SSH qw(ssh);
@ISA = qw( FS::svc_Common );
@@ -220,7 +220,7 @@ sub check {
=head1 VERSION
-$Id: svc_www.pm,v 1.3 2000-11-22 23:30:51 ivan Exp $
+$Id: svc_www.pm,v 1.4 2001-04-22 01:56:15 ivan Exp $
=head1 BUGS
@@ -232,7 +232,10 @@ L<FS::part_svc>, L<FS::cust_pkg>, schema.html from the base documentation.
=head1 HISTORY
$Log: svc_www.pm,v $
-Revision 1.3 2000-11-22 23:30:51 ivan
+Revision 1.4 2001-04-22 01:56:15 ivan
+get rid of FS::SSH.pm (became Net::SSH and Net::SCP on CPAN)
+
+Revision 1.3 2000/11/22 23:30:51 ivan
tyop
Revision 1.2 2000/03/01 08:13:59 ivan
diff --git a/FS/MANIFEST b/FS/MANIFEST
index a373f9a07..98f76acda 100644
--- a/FS/MANIFEST
+++ b/FS/MANIFEST
@@ -3,7 +3,6 @@ FS.pm
FS/CGI.pm
FS/Conf.pm
FS/Record.pm
-FS/SSH.pm
FS/UI/Base.pm
FS/UI/CGI.pm
FS/UI/Gtk.pm