Changeset 10628
- Timestamp:
- Dec 11, 2006, 2:06:27 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
Nebulous-Server/Changes (modified) (1 diff)
-
Nebulous-Server/lib/Nebulous/Server/Config.pm (modified) (4 diffs)
-
Nebulous/Changes (modified) (1 diff)
-
Nebulous/lib/Nebulous/Server/Config.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r10627 r10628 16 16 - change Nebulous::Server::Log to accept a Nebulous::Server::Config object 17 17 as a parameter instead of fetching it as a singleton 18 - make Nebulous::Server::Config no longer a singleton 18 19 19 20 0.02 Fri Dec 2 17:36:59 HST 2005 -
trunk/Nebulous-Server/lib/Nebulous/Server/Config.pm
r4874 r10628 1 1 # Copyright (C) 2005 Joshua Hoblitt 2 2 # 3 # $Id: Config.pm,v 1. 1 2005-08-25 01:44:32jhoblitt Exp $3 # $Id: Config.pm,v 1.2 2006-12-12 00:06:27 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server::Config; … … 8 8 use warnings FATAL => qw( all ); 9 9 10 our $VERSION = 0.0 1;10 our $VERSION = 0.02; 11 11 12 12 use base qw( Class::Accessor::Fast ); … … 14 14 use Nebulous::Util qw( %LEVELS ); 15 15 use Params::Validate qw( validate SCALAR ); 16 17 my $_instance;18 16 19 17 my $new_validate = { … … 47 45 bless $self, $class || ref $class; 48 46 49 $_instance = $self;50 51 47 return $self; 52 }53 54 # orginaly lifted from Class::Singleton and modified to return undef unless the55 # singleton has been initialized.56 57 sub instance {58 my $class = shift;59 60 die "not configured" unless defined $_instance;61 62 #return defined $_instance ? $_instance : undef;63 return $_instance;64 48 } 65 49 -
trunk/Nebulous/Changes
r10627 r10628 16 16 - change Nebulous::Server::Log to accept a Nebulous::Server::Config object 17 17 as a parameter instead of fetching it as a singleton 18 - make Nebulous::Server::Config no longer a singleton 18 19 19 20 0.02 Fri Dec 2 17:36:59 HST 2005 -
trunk/Nebulous/lib/Nebulous/Server/Config.pm
r4874 r10628 1 1 # Copyright (C) 2005 Joshua Hoblitt 2 2 # 3 # $Id: Config.pm,v 1. 1 2005-08-25 01:44:32jhoblitt Exp $3 # $Id: Config.pm,v 1.2 2006-12-12 00:06:27 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server::Config; … … 8 8 use warnings FATAL => qw( all ); 9 9 10 our $VERSION = 0.0 1;10 our $VERSION = 0.02; 11 11 12 12 use base qw( Class::Accessor::Fast ); … … 14 14 use Nebulous::Util qw( %LEVELS ); 15 15 use Params::Validate qw( validate SCALAR ); 16 17 my $_instance;18 16 19 17 my $new_validate = { … … 47 45 bless $self, $class || ref $class; 48 46 49 $_instance = $self;50 51 47 return $self; 52 }53 54 # orginaly lifted from Class::Singleton and modified to return undef unless the55 # singleton has been initialized.56 57 sub instance {58 my $class = shift;59 60 die "not configured" unless defined $_instance;61 62 #return defined $_instance ? $_instance : undef;63 return $_instance;64 48 } 65 49
Note:
See TracChangeset
for help on using the changeset viewer.
