Changeset 24557 for branches/eam_branches/20090522/Nebulous/bin
- Timestamp:
- Jun 25, 2009, 2:00:56 PM (17 years ago)
- Location:
- branches/eam_branches/20090522
- Files:
-
- 8 edited
-
. (modified) (1 prop)
-
Nebulous (modified) (1 prop)
-
Nebulous/bin (modified) (1 prop)
-
Nebulous/bin/neb-locate (modified) (2 diffs)
-
Nebulous/bin/neb-ls (modified) (1 diff)
-
Nebulous/bin/neb-replicate (modified) (1 diff)
-
Nebulous/bin/neb-rm (modified) (4 diffs)
-
Nebulous/bin/neb-stat (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090522
- Property svn:mergeinfo changed
-
branches/eam_branches/20090522/Nebulous
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/20090522/Nebulous/bin
- Property svn:mergeinfo changed
/trunk/Nebulous/bin merged: 24264,24346,24348,24440-24441,24462-24464,24512
- Property svn:mergeinfo changed
-
branches/eam_branches/20090522/Nebulous/bin/neb-locate
r16179 r24557 41 41 unless defined $neb; 42 42 43 $volume = 'any' if defined $all; 44 43 45 my $uris; 44 46 if (defined $volume) { … … 70 72 } 71 73 72 print join(" ", @files), "\n";74 print join("\n", @files), "\n"; 73 75 74 76 __END__ -
branches/eam_branches/20090522/Nebulous/bin/neb-ls
r23934 r24557 21 21 22 22 $server = $ENV{'NEB_SERVER'} unless $server; 23 24 # make --long the default 25 $long = 1; 23 26 24 27 GetOptions( -
branches/eam_branches/20090522/Nebulous/bin/neb-replicate
r23696 r24557 16 16 use Pod::Usage qw( pod2usage ); 17 17 18 my ($server, $volume, $copies );18 my ($server, $volume, $copies, $set_copies); 19 19 $copies = 1; # default to making just one copy 20 20 -
branches/eam_branches/20090522/Nebulous/bin/neb-rm
r13074 r24557 16 16 use Pod::Usage qw( pod2usage ); 17 17 18 my ($server); 18 my ( 19 $force, 20 $move, 21 $server, 22 ); 19 23 20 24 $server = $ENV{'NEB_SERVER'} unless $server; 21 25 22 26 GetOptions( 27 'force|f' => \$force, 28 'move|m' => \$move, 23 29 'server|s=s' => \$server, 24 30 ) || pod2usage( 2 ); … … 35 41 36 42 foreach my $key (@ARGV) { 37 $neb->delete($key) or warn "failed to delete key: $key"; 43 unless (defined $move) { 44 $neb->delete($key) or warn "failed to delete key: $key"; 45 } else { 46 $neb->move($key, "${key}.rm") or warn "failed to move key: $key"; 47 } 38 48 } 39 49 … … 48 58 =head1 SYNOPSIS 49 59 50 neb-rm [--server <URL>] <key...>60 neb-rm [--server <URL>] [--force] [--move] <key...> 51 61 52 62 =head1 DESCRIPTION … … 58 68 59 69 =over 4 70 71 =item * --force|-f 72 73 When set, C<<key>> will be removed from the nebulous database even if the on 74 disk file(s) are missing. 75 76 Optional. 77 78 =item * --move|-m 79 80 When set, this flag causes C<<key>> to be renamed to C<<key>.rm> instead of 81 being deleted. 82 83 Optional. 60 84 61 85 =item * --server|-s <URL> -
branches/eam_branches/20090522/Nebulous/bin/neb-stat
r18016 r24557 41 41 my $stat = $neb->stat($key); 42 42 die "nebulous key: $key not found" unless $stat; 43 my $instances = $neb->find_instances($key, ' :any');43 my $instances = $neb->find_instances($key, 'any'); 44 44 die "no instances found" unless $instances; 45 45
Note:
See TracChangeset
for help on using the changeset viewer.
