Changeset 23934
- Timestamp:
- Apr 20, 2009, 11:23:23 AM (17 years ago)
- Location:
- trunk/Nebulous
- Files:
-
- 2 deleted
- 34 edited
- 21 copied
-
. (modified) (1 prop)
-
Build.PL (modified) (1 diff)
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
bin (modified) (1 prop)
-
bin/neb-ls (modified) (7 diffs)
-
examples (modified) (1 prop)
-
lib (modified) (1 prop)
-
lib/Nebulous/Client.pm (modified) (7 diffs)
-
lib/Nebulous/Server (deleted)
-
lib/Nebulous/Util.pm (modified) (1 diff)
-
nebclient/tests/tap (modified) (1 prop)
-
nebclient/tests/tap/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/.cvsignore )
-
nebclient/tests/tap/bootstrap.sh (modified) (1 diff)
-
nebclient/tests/tap/src (modified) (1 prop)
-
nebclient/tests/tap/src/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/src/.cvsignore )
-
nebclient/tests/tap/tests (modified) (1 prop)
-
nebclient/tests/tap/tests/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/.cvsignore )
-
nebclient/tests/tap/tests/diag (modified) (1 prop)
-
nebclient/tests/tap/tests/diag/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/diag/.cvsignore )
-
nebclient/tests/tap/tests/fail (modified) (1 prop)
-
nebclient/tests/tap/tests/fail/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/fail/.cvsignore )
-
nebclient/tests/tap/tests/ok (modified) (1 prop)
-
nebclient/tests/tap/tests/ok/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/ok/.cvsignore )
-
nebclient/tests/tap/tests/ok/ok (modified) (1 prop)
-
nebclient/tests/tap/tests/ok/ok-hash (modified) (1 prop)
-
nebclient/tests/tap/tests/ok/ok-hash/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/ok/ok-hash/.cvsignore )
-
nebclient/tests/tap/tests/ok/ok-numeric (modified) (1 prop)
-
nebclient/tests/tap/tests/ok/ok-numeric/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/ok/ok-numeric/.cvsignore )
-
nebclient/tests/tap/tests/ok/ok/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/ok/ok/.cvsignore )
-
nebclient/tests/tap/tests/pass (modified) (1 prop)
-
nebclient/tests/tap/tests/pass/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/pass/.cvsignore )
-
nebclient/tests/tap/tests/plan (modified) (1 prop)
-
nebclient/tests/tap/tests/plan/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/plan/.cvsignore )
-
nebclient/tests/tap/tests/plan/no-tests (modified) (1 prop)
-
nebclient/tests/tap/tests/plan/no-tests/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/plan/no-tests/.cvsignore )
-
nebclient/tests/tap/tests/plan/no_plan (modified) (1 prop)
-
nebclient/tests/tap/tests/plan/no_plan/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/plan/no_plan/.cvsignore )
-
nebclient/tests/tap/tests/plan/not-enough-tests (modified) (1 prop)
-
nebclient/tests/tap/tests/plan/not-enough-tests/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/plan/not-enough-tests/.cvsignore )
-
nebclient/tests/tap/tests/plan/sane (modified) (1 prop)
-
nebclient/tests/tap/tests/plan/sane/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/plan/sane/.cvsignore )
-
nebclient/tests/tap/tests/plan/skip_all (modified) (1 prop)
-
nebclient/tests/tap/tests/plan/skip_all/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/plan/skip_all/.cvsignore )
-
nebclient/tests/tap/tests/plan/too-many-plans (modified) (1 prop)
-
nebclient/tests/tap/tests/plan/too-many-plans/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/plan/too-many-plans/.cvsignore )
-
nebclient/tests/tap/tests/plan/too-many-tests (modified) (1 prop)
-
nebclient/tests/tap/tests/plan/too-many-tests/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/plan/too-many-tests/.cvsignore )
-
nebclient/tests/tap/tests/skip (modified) (1 prop)
-
nebclient/tests/tap/tests/skip/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/skip/.cvsignore )
-
nebclient/tests/tap/tests/todo (modified) (1 prop)
-
nebclient/tests/tap/tests/todo/.cvsignore (copied) (copied from branches/jhoblitt/Nebulous/nebclient/tests/tap/tests/todo/.cvsignore )
-
t (modified) (1 prop)
-
t/62_client_delete_instance.t (modified) (8 diffs)
-
t/70_neb-ls.t (copied) (copied from branches/neb_distrib_20081210/Nebulous/t/70_neb-ls.t )
-
t/Test (deleted)
-
t/conf/startup.pl.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/eam_branches/eam_branch_20090303/Nebulous 23158-23228 /branches/jhoblitt/Nebulous 2785-12604 /branches/pap/Nebulous 23511-23685,23690-23739
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/Nebulous/Build.PL
r22739 r23934 95 95 'Nebulous::Server::SOAP' => 0, 96 96 'Test::Nebulous' => 0, 97 'Test::Cmd' => '1.05', 97 98 'Apache2::SOAP' => 0, 98 99 'Apache::DBI' => '1.05', -
trunk/Nebulous/Changes
r23709 r23934 9 9 - add neb-swap 10 10 - add nebclient:nebSetXattr() 11 - add neb-rm --move flag12 11 13 12 0.09 Wed Jul 9 16:36:27 HST 2008 -
trunk/Nebulous/MANIFEST
r23350 r23934 98 98 t/66_client_xattr.t 99 99 t/67_client_swap.t 100 t/70_neb-ls.t 100 101 t/90_nebclient.t 101 102 t/TEST.PL -
trunk/Nebulous/bin
- Property svn:mergeinfo changed
/branches/jhoblitt/Nebulous/bin (added) merged: 2785-12604 /branches/neb_distrib_20081210/Nebulous/bin (added) merged: 20900,23536,23568,23691,23875
- Property svn:mergeinfo changed
-
trunk/Nebulous/bin/neb-ls
r18092 r23934 1 1 #!/usr/bin/env perl 2 2 3 # Copyright (C) 2007-2008 Joshua Hoblitt 4 # 5 # $Id: neb-ls,v 1.7 2008-06-12 20:03:37 jhoblitt Exp $ 3 # Copyright (C) 2007-2009 Joshua Hoblitt 6 4 7 5 use strict; … … 9 7 10 8 use vars qw( $VERSION ); 11 $VERSION = '0.0 2';9 $VERSION = '0.03'; 12 10 13 11 use Nebulous::Client; … … 16 14 use Pod::Usage qw( pod2usage ); 17 15 18 my ($server, $long, $recursive); 16 my ( 17 $server, 18 $long, 19 # $recursive, 20 ); 19 21 20 22 $server = $ENV{'NEB_SERVER'} unless $server; … … 22 24 GetOptions( 23 25 'server|s=s' => \$server, 24 'recursive|r' => \$recursive,26 # 'recursive|r' => \$recursive, 25 27 'l|1' => \$long, 26 28 ) || pod2usage( 2 ); … … 39 41 unless defined $neb; 40 42 41 # default to listing everything (bad idea?)42 $pattern ||= " .*";43 # default to listing root 44 $pattern ||= "/"; 43 45 44 if ($recursive) {45 $pattern = "^" . $pattern . ".*";46 } else {47 $pattern = "^" . $pattern . "\$";48 }46 #if ($recursive) { 47 # $pattern = "^" . $pattern . ".*"; 48 #} else { 49 # $pattern = "^" . $pattern . "\$"; 50 #} 49 51 50 52 my $keys = $neb->find_objects($pattern); … … 86 88 Optional 87 89 88 =item * --recursive|-r 89 90 By default C<neb-ls> will only try to match the exact string provided to it. 91 With this option set all keys which match C<<pattern>> as a REGEX or substring 92 will be returned. 93 94 Optional 95 90 =cut 91 #=item * --recursive|-r 92 # 93 #By default C<neb-ls> will only try to match the exact string provided to it. 94 #With this option set all keys which match C<<pattern>> as a REGEX or substring 95 #will be returned. 96 # 97 #Optional 98 # 96 99 =item * --server|-s <URL> 97 100 … … 130 133 =head1 COPYRIGHT 131 134 132 Copyright (C) 2007-200 8Joshua Hoblitt. All rights reserved.135 Copyright (C) 2007-2009 Joshua Hoblitt. All rights reserved. 133 136 134 137 This program is free software; you can redistribute it and/or modify it under -
trunk/Nebulous/examples
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/neb_distrib_20081210/Nebulous/examples merged eligible /branches/eam_branches/eam_branch_20090303/Nebulous/examples 23158-23228 /branches/jhoblitt/Nebulous/examples 2785-12604 /branches/pap/Nebulous/examples 23511-23685,23690-23739
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/Nebulous/lib
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/neb_distrib_20081210/Nebulous/lib merged eligible /branches/eam_branches/eam_branch_20090303/Nebulous/lib 23158-23228 /branches/jhoblitt/Nebulous/lib 2785-12604 /branches/pap/Nebulous/lib 23511-23685,23690-23739
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/Nebulous/lib/Nebulous/Client.pm
r20988 r23934 243 243 # if the copy failed we now have a zero length instances floating 244 244 # around that must be removed 245 unless ($self->delete_instance( "$uri")) {245 unless ($self->delete_instance($key, "$uri")) { 246 246 $log->logdie( "can not copy instance $uri AND FAILED TO CLEANUP EMPTY INSTANCE" ); 247 247 } … … 256 256 257 257 unless ($src_md5 eq $dst_md5) { 258 $self->delete_instance( "$uri");258 $self->delete_instance($key, "$uri"); 259 259 $log->logdie( "md5sum mismatch" ); 260 260 } … … 327 327 } 328 328 329 my $uri = $self->delete_instance( @$locations[0]);329 my $uri = $self->delete_instance($key, @$locations[0]); 330 330 331 331 $log->debug("leaving"); … … 615 615 return; 616 616 } 617 if ($response->faultstring =~ /does not match any key or directory/) { 618 $log->debug( "leaving" ); 619 return; 620 } 617 621 618 622 $log->logdie("unhandled fault - ", $self->err); … … 813 817 # a lock is implicitly removed when the last storage object is deleted 814 818 foreach my $uri ( @$locations ) { 815 $self->delete_instance( $uri) or return undef;819 $self->delete_instance($key, $uri) or return undef; 816 820 } 817 821 … … 944 948 my $self = shift; 945 949 946 my ($uri) = validate_pos(@_, 950 my ($key, $uri) = validate_pos(@_, 951 { 952 type => SCALAR, 953 }, 947 954 { 948 955 type => SCALAR, … … 961 968 $log->logdie( $@ ) if $@; 962 969 963 my $response = $self->{ 'server' }->delete_instance( $uri);970 my $response = $self->{ 'server' }->delete_instance($key, $uri); 964 971 if ( $response->fault ) { 965 972 $self->set_err($response->faultstring); -
trunk/Nebulous/lib/Nebulous/Util.pm
r18463 r23934 45 45 46 46 47 # XXX replace the unlink with a 'move to trash' operation 48 # empty the trash with a daemon on the NSF server 47 49 sub _nuke_file { 48 50 my $path = shift; -
trunk/Nebulous/nebclient/tests/tap
- Property svn:ignore
-
old new 1 .in 2 Makefile 3 Makefile.in 4 aclocal.m4 5 autom4te.cache 6 config.log 7 config.status 1 8 configure 2 Makefile.in3 config.log4 depcomp5 config.status6 config.guess7 ltmain.sh8 config.sub9 autom4te.cache10 9 libtool 11 missing 12 aclocal.m4 13 Makefile 14 install-sh 15 src/Makefile.in 16 src/stamp-h1 17 src/config.h 18 src/config.h.in 19 src/.deps 20 src/Makefile 10 *.bb 11 *.bbg 12 *.da 13 gmon.out
-
- Property svn:ignore
-
trunk/Nebulous/nebclient/tests/tap/bootstrap.sh
r13100 r23934 2 2 3 3 set -x 4 aclocal || exit 15 autoheader || autoheader || exit 16 libtoolize -c -f || libtoolize -c -f || glibtoolize -c -f || exit 17 automake -a -c || automake -a -c || exit 18 autoconf || autoconf || exit 14 aclocal19 -I /usr/local/share/aclocal || aclocal || exit 1 5 autoheader259 || autoheader || exit 1 6 libtoolize15 -c -f || libtoolize -c -f || glibtoolize -c -f || exit 1 7 automake19 -a -c || automake -a -c || exit 1 8 autoconf259 || autoconf || exit 1 -
trunk/Nebulous/nebclient/tests/tap/src
- Property svn:ignore
-
old new 1 .deps 2 .libs 3 Makefile 1 4 Makefile.in 2 ignore 3 stamp-h1 5 libtap.la 6 tap.lo 4 7 config.h 5 8 config.h.in 6 .deps 7 Makefile 8 .libs 9 stamp-h1 10 *.bb 11 *.bbg 12 *.da 13 gmon.out
-
- Property svn:ignore
-
trunk/Nebulous/nebclient/tests/tap/tests
-
Property svn:ignore
set to
Makefile
Makefile.in
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/diag
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/fail
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/ok
-
Property svn:ignore
set to
Makefile
Makefile.in
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/ok/ok
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/ok/ok-hash
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/ok/ok-numeric
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/pass
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/plan
-
Property svn:ignore
set to
Makefile
Makefile.in
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/plan/no-tests
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/plan/no_plan
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/plan/not-enough-tests
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/plan/sane
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/plan/skip_all
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/plan/too-many-plans
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/plan/too-many-tests
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/skip
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/nebclient/tests/tap/tests/todo
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
.libs
test
test.c.out
test.pl.out
*.bb
*.bbg
*.da
gmon.out
-
Property svn:ignore
set to
-
trunk/Nebulous/t
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/neb_distrib_20081210/Nebulous/t merged eligible /branches/eam_branches/eam_branch_20090303/Nebulous/t 23158-23228 /branches/jhoblitt/Nebulous/t 2785-12604 /branches/pap/Nebulous/t 23511-23685,23690-23739
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/Nebulous/t/62_client_delete_instance.t
r20988 r23934 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 62_client_delete_instance.t,v 1. 3 2008-12-14 22:48:35eugene Exp $5 # $Id: 62_client_delete_instance.t,v 1.1.38.1 2008-12-14 22:03:08 eugene Exp $ 6 6 7 7 use strict; … … 10 10 use Apache::Test qw( -withtestmore ); 11 11 12 plan tests => 9;12 plan tests => 11; 13 13 14 14 use lib qw( ./t ./lib ); … … 26 26 proxy => "http://$hostport/nebulous", 27 27 ); 28 $neb->create( "foo" );29 28 30 my $locations = $neb->find_instances( "foo" ); 29 my $key = "foo"; 30 $neb->create($key); 31 31 32 my $uri = $neb->delete_instance( @$locations[0] ); 32 my $locations = $neb->find_instances($key); 33 34 my $uri = $neb->delete_instance($key, @$locations[0]); 33 35 34 36 is( $uri, @$locations[0], "delete instance" ); … … 43 45 proxy => "http://$hostport/nebulous", 44 46 ); 45 $neb->create( "foo" ); 46 $neb->replicate( "foo" ); 47 my $key = "foo"; 48 $neb->create($key); 49 $neb->replicate($key); 47 50 48 51 my $uri1 = $neb->find_instances( "foo" )->[0]; 49 52 50 ok( $neb->delete_instance( $uri1), "delete instance" );53 ok( $neb->delete_instance($key, $uri1), "delete instance" ); 51 54 52 55 my $uri2 = $neb->find_instances( "foo" )->[0]; … … 54 57 isnt( $uri1, $uri2, "other instance remains" ); 55 58 56 ok( $neb->delete_instance( $uri2), "delete instance" );59 ok( $neb->delete_instance($key, $uri2), "delete instance" ); 57 60 58 61 my $locations = $neb->find_instances( "foo" ); 59 62 60 is( $locations, undef, "no rema ning instances" );63 is( $locations, undef, "no remaining instances" ); 61 64 } 65 66 Test::Nebulous->setup; 62 67 63 68 { … … 65 70 proxy => "http://$hostport/nebulous", 66 71 ); 67 my $uri = $neb->delete_instance( "file:/foo" ); 72 my $key = "foo"; 73 $neb->create($key); 74 my $uri = $neb->delete_instance($key, "file:/foo" ); 68 75 69 76 is( $uri, undef, "uri does not exist" ); … … 76 83 proxy => "http://$hostport/nebulous", 77 84 ); 78 $neb->delete_instance();85 my $uri = $neb->delete_instance("foo", "file:/foo" ); 79 86 }; 80 like( $@, qr/ 1 was expected/, "no params" );87 like( $@, qr/is valid object key/, "bad object key" ); 81 88 82 89 Test::Nebulous->setup; … … 86 93 proxy => "http://$hostport/nebulous", 87 94 ); 88 $neb->delete_instance( "foo", 2);95 my $uri = $neb->delete_instance("foo"); 89 96 }; 90 like( $@, qr/1 was expected/, "too many params" ); 97 like( $@, qr/2 were expected/, "missing second param" ); 98 99 Test::Nebulous->setup; 100 101 eval { 102 my $neb = Nebulous::Client->new( 103 proxy => "http://$hostport/nebulous", 104 ); 105 $neb->delete_instance(); 106 }; 107 like( $@, qr/2 were expected/, "no params" ); 108 109 Test::Nebulous->setup; 110 111 eval { 112 my $neb = Nebulous::Client->new( 113 proxy => "http://$hostport/nebulous", 114 ); 115 $neb->delete_instance("foo", 2, 3); 116 }; 117 like( $@, qr/2 were expected/, "too many params" ); 91 118 92 119 Test::Nebulous->cleanup; -
trunk/Nebulous/t/conf/startup.pl.in
r16281 r23934 12 12 use Test::Nebulous; 13 13 14 #$Apache::DBI::DEBUG = 1; 14 15 Apache::DBI->connect_on_init( $NEB_DB, $NEB_USER, $NEB_PASS ); 15 Nebulous::Server::SOAP->new_on_init( 16 Apache::DBI->setPingTimeOut($NEB_DB, 10); 17 18 my $config = Nebulous::Server::Config->new( 19 trace => 'all', 20 ); 21 $config->add_db( 22 dbindex => 0, 16 23 dsn => $NEB_DB, 17 24 dbuser => $NEB_USER, 18 25 dbpasswd => $NEB_PASS, 19 log_level => 'all',20 26 ); 27 #$config->add_db( 28 # dbindex => 1, 29 # dsn => 'DBI:mysql:database=nebulous1:host=localhost', 30 # dbuser => $dbuser, 31 # dbpasswd => $dbpasswd, 32 #); 33 34 Nebulous::Server::SOAP->new_on_init($config); 21 35 22 36 1;
Note:
See TracChangeset
for help on using the changeset viewer.
