projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d8bb43c
)
no default default_dir (ironic)
author
ivan
<ivan>
Fri, 13 Nov 1998 04:08:44 +0000
(
04:08
+0000)
committer
ivan
<ivan>
Fri, 13 Nov 1998 04:08:44 +0000
(
04:08
+0000)
site_perl/Conf.pm
patch
|
blob
|
history
diff --git
a/site_perl/Conf.pm
b/site_perl/Conf.pm
index
d3ef307
..
96a284f
100644
(file)
--- a/
site_perl/Conf.pm
+++ b/
site_perl/Conf.pm
@@
-3,8
+3,6
@@
package FS::Conf;
use vars qw($default_dir);
use IO::File;
use vars qw($default_dir);
use IO::File;
-$default_dir='/var/spool/freeside/conf';
-
=head1 NAME
FS::Conf - Read access to Freeside configuration values
=head1 NAME
FS::Conf - Read access to Freeside configuration values
@@
-13,8
+11,10
@@
FS::Conf - Read access to Freeside configuration values
use FS::Conf;
use FS::Conf;
+ $conf = new FS::Conf "/config/directory";
+
+ $FS::Conf::default_dir = "/config/directory";
$conf = new FS::Conf;
$conf = new FS::Conf;
- $conf = new FS::Conf "/non/standard/config/directory";
$dir = $conf->dir;
$dir = $conf->dir;
@@
-33,8
+33,8
@@
but this may change in the future.
=item new [ DIRECTORY ]
=item new [ DIRECTORY ]
-Create a new configuration object.
Optionally, a non-default directory may
-
be specified
.
+Create a new configuration object.
A directory arguement is required if
+
$FS::Conf::default_dir has not been set
.
=cut
=cut
@@
-94,8
+94,6
@@
sub exists {
=head1 BUGS
=head1 BUGS
-The option to specify a non-default directory should probably be removed.
-
Write access (with locking) should be implemented.
=head1 SEE ALSO
Write access (with locking) should be implemented.
=head1 SEE ALSO
@@
-108,6
+106,11
@@
Ivan Kohler <ivan@sisd.com> 98-sep-6
sub exists forgot to fetch $dir ivan@sisd.com 98-sep-27
sub exists forgot to fetch $dir ivan@sisd.com 98-sep-27
+$Log: Conf.pm,v $
+Revision 1.2 1998-11-13 04:08:44 ivan
+no default default_dir (ironic)
+
+
=cut
1;
=cut
1;