Changeset 13048
- Timestamp:
- Apr 26, 2007, 2:09:22 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
-
Nebulous-Server/Changes (modified) (1 diff)
-
Nebulous-Server/MANIFEST (modified) (1 diff)
-
Nebulous/Changes (modified) (1 diff)
-
Nebulous/MANIFEST (modified) (1 diff)
-
Nebulous/lib/Nebulous/Client.pm (modified) (2 diffs)
-
Nebulous/t/64_client_find_objects.t (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r13047 r13048 2 2 3 3 0.05 4 - add Nebulous::Server->find_keys() 4 - add Nebulous::Client->find_objects() 5 - add Nebulous::Server->find_objects() 5 6 - add neb-touch 6 7 - add neb-df -
trunk/Nebulous-Server/MANIFEST
r13047 r13048 100 100 t/62_client_delete_instance.t 101 101 t/63_client_stat.t 102 t/64_client_find_objects.t 102 103 t/90_nebclient.t 103 104 t/TEST.PL -
trunk/Nebulous/Changes
r13047 r13048 2 2 3 3 0.05 4 - add Nebulous::Server->find_keys() 4 - add Nebulous::Client->find_objects() 5 - add Nebulous::Server->find_objects() 5 6 - add neb-touch 6 7 - add neb-df -
trunk/Nebulous/MANIFEST
r13047 r13048 100 100 t/62_client_delete_instance.t 101 101 t/63_client_stat.t 102 t/64_client_find_objects.t 102 103 t/90_nebclient.t 103 104 t/TEST.PL -
trunk/Nebulous/lib/Nebulous/Client.pm
r12961 r13048 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Client.pm,v 1.2 4 2007-04-23 20:45:08jhoblitt Exp $3 # $Id: Client.pm,v 1.25 2007-04-27 00:09:22 jhoblitt Exp $ 4 4 5 5 package Nebulous::Client; … … 383 383 } 384 384 385 sub find_objects { 386 my $self = shift; 387 388 my ( $pattern ) = validate_pos( @_, 389 { 390 type => SCALAR, 391 optional => 1, 392 }, 393 ); 394 395 $log->debug( "entered - @_" ); 396 397 my $response = $self->{ 'server' }->find_objects( $pattern ); 398 if ( $response->fault ) { 399 $log->error( $response->faultcode, " - ", $response->faultstring ); 400 $log->debug( "leaving" ); 401 402 return undef; 403 } 404 405 my $keys = $response->result; 406 407 $log->debug( "server found: @$keys" ); 408 409 # foreach my $path ( @{ $uris } ) { 410 # $path = _get_file_path( $path ); 411 # } 412 413 $log->debug( "leaving" ); 414 415 # aparently empty arrays are being turned into undef by SOAP::Lite so the 416 # behavior of this function is different then it's ::Server counter part 417 418 return $keys; 419 } 420 385 421 sub find_instances { 386 422 my $self = shift;
Note:
See TracChangeset
for help on using the changeset viewer.
