From: Rob H. <for...@us...> - 2004-12-21 06:27:11
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10516/SandWeb Modified Files: Auth.pm Log Message: remove hardcoded paths. I think we should start passing around a config object, or something, instead of passing just the params that objects need.. it requires us to know way too much about the objects we're creating. Index: Auth.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Auth.pm,v retrieving revision 1.27 retrieving revision 1.28 diff -U2 -r1.27 -r1.28 --- Auth.pm 24 Aug 2003 18:43:32 -0000 1.27 +++ Auth.pm 21 Dec 2004 06:27:02 -0000 1.28 @@ -104,4 +104,6 @@ my $self = bless { + 'bindir' => $args{'bindir'}, + 'ssh_bin' => $args{'ssh_bin'}, 'user_info' => {}, '_log_obj' => $args{'log_obj'}, @@ -196,4 +198,6 @@ if ($self->_get_auth_type() eq 'unix'){ $auth = SandWeb::Auth::Unix::->new( + 'bindir' => $bindir, + 'ssh_bin' => $ssh_bin, 'log_obj' => $log, ); |