Changeset 16354
- Timestamp:
- Feb 7, 2008, 12:18:51 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
Nebulous-Server/Changes (modified) (1 diff)
-
Nebulous-Server/lib/Nebulous/Server.pm (modified) (2 diffs)
-
Nebulous/Changes (modified) (1 diff)
-
Nebulous/lib/Nebulous/Server.pm (modified) (2 diffs)
-
Nebulous/lib/Nebulous/Util.pm (modified) (2 diffs)
-
Nebulous/t/Test/Nebulous.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r16263 r16354 2 2 3 3 0.07 4 - pickup test DB settings from the env. 4 5 - add neb-ls -l|-1 option 5 6 - add neb-fsck -
trunk/Nebulous-Server/lib/Nebulous/Server.pm
r16265 r16354 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Server.pm,v 1.5 1 2008-01-31 02:26:33jhoblitt Exp $3 # $Id: Server.pm,v 1.52 2008-02-07 22:18:51 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server; … … 861 861 $log->debug( "entered - @_" ); 862 862 863 unless ($pattern) { 864 $log->debug( "leaving" ); 865 return []; 866 } 867 868 # attempt to strip off neb:// if it exists 869 if ($pattern =~ m|^neb:|) { 870 $pattern = parse_neb_key($pattern); 871 } 872 863 873 my $query; 864 865 874 eval { 866 875 $query = $db->prepare_cached( $sql->find_objects ); -
trunk/Nebulous/Changes
r16263 r16354 2 2 3 3 0.07 4 - pickup test DB settings from the env. 4 5 - add neb-ls -l|-1 option 5 6 - add neb-fsck -
trunk/Nebulous/lib/Nebulous/Server.pm
r16265 r16354 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Server.pm,v 1.5 1 2008-01-31 02:26:33jhoblitt Exp $3 # $Id: Server.pm,v 1.52 2008-02-07 22:18:51 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server; … … 861 861 $log->debug( "entered - @_" ); 862 862 863 unless ($pattern) { 864 $log->debug( "leaving" ); 865 return []; 866 } 867 868 # attempt to strip off neb:// if it exists 869 if ($pattern =~ m|^neb:|) { 870 $pattern = parse_neb_key($pattern); 871 } 872 863 873 my $query; 864 865 874 eval { 866 875 $query = $db->prepare_cached( $sql->find_objects ); -
trunk/Nebulous/lib/Nebulous/Util.pm
r16205 r16354 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Util.pm,v 1. 9 2008-01-23 22:46:44jhoblitt Exp $3 # $Id: Util.pm,v 1.10 2008-02-07 22:18:51 jhoblitt Exp $ 4 4 5 5 package Nebulous::Util; … … 83 83 { 84 84 my $text = shift; 85 return unless defined $text; 85 86 86 87 # white space is not allowed -
trunk/Nebulous/t/Test/Nebulous.pm
r16281 r16354 1 1 # Copyright (C) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Nebulous.pm,v 1.1 6 2008-02-02 01:51:29jhoblitt Exp $3 # $Id: Nebulous.pm,v 1.17 2008-02-07 22:17:45 jhoblitt Exp $ 4 4 5 5 package Test::Nebulous; … … 18 18 our @EXPORT = qw( $NEB_DB $NEB_USER $NEB_PASS ); 19 19 20 our $NEB_DB = "DBI:mysql:database=nebulous:host=localhost";21 our $NEB_USER = "nebulous";22 our $NEB_PASS = '@neb@';20 our $NEB_DB = $ENV{'NEB_DB'} || "DBI:mysql:database=test:host=localhost"; 21 our $NEB_USER = $ENV{'NEB_USER'} || "test"; 22 our $NEB_PASS = $ENV{'NEB_PASS'} || ''; 23 23 24 24 my $dbh = DBI->connect( $NEB_DB, $NEB_USER, $NEB_PASS );
Note:
See TracChangeset
for help on using the changeset viewer.
