IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16159


Ignore:
Timestamp:
Jan 18, 2008, 5:22:47 PM (18 years ago)
Author:
jhoblitt
Message:

VERSION 0.02
rename --node -> --volume
doc update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsget

    r15290 r16159  
    11#!/usr/bin/env perl
    22
    3 # Copyright (C) 2006  Joshua Hoblitt
     3# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.8 2007-10-12 01:25:18 jhoblitt Exp $
     5# $Id: dsget,v 1.9 2008-01-19 03:22:47 jhoblitt Exp $
    66
    77use strict;
     
    99
    1010use vars qw( $VERSION );
    11 $VERSION = '0.01';
     11$VERSION = '0.02';
    1212
    1313use DataStore;
     
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($uri, $bytes, $md5, $nebulous, $filename, $node, $server);
     21my ($uri, $bytes, $md5, $nebulous, $filename, $volume, $server);
    2222
    2323$server = $ENV{'NEB_SERVER'} unless $server;
     
    2626    'uri|u=s'       => \$uri,
    2727    'bytes|m=s'     => \$bytes,
    28     'nebulous|n'  => \$nebulous,
    29     'node|n=s'      => \$node,
     28    'nebulous|n'    => \$nebulous,
     29    'volume|v=s'    => \$volume,
    3030    'server|s=s'    => \$server,
    3131    'md5|m=s'       => \$md5,
     
    3838    -exitval => 3,
    3939) unless defined $uri and defined $filename;
     40
     41# --volume implies --nebulous
     42if ($volume) {
     43    $nebulous |=1;
     44}
    4045
    4146my %p = (
     
    100105        unless defined $neb;
    101106
    102     my $fh = $neb->open_create( $filename, $node )
     107    my $fh = $neb->open_create( $filename, $volume )
    103108        or die "Nebulous can't create key $filename";
    104109    open(my $src_fh, $tmpfilename) or die "can't open file $tmpfilename: $!";
     
    128133
    129134    dsget --uri <uri> --filename <filename> [--bytes <nbytes>] [--md5 <hex>]
     135        [--nebulous] [--volume <volume>]
    130136
    131137=head1 DESCRIPTION
     
    155161Optional, the md5check is skipped if no value is specified.
    156162
     163=item * --nebulous|-n
     164
     165Flag to enable C<nebulous> support.  When set C<--filename> is used as the
     166Nebulous key.
     167
     168Optional.
     169
     170=item * --volume|-v <volume>
     171
     172The volume ID to request the first Nebulous instance be stored on.
     173
     174Optional, implies C<--nebulous>
     175
    157176=back
    158177
     
    171190=head1 COPYRIGHT
    172191
    173 Copyright (C) 2006  Joshua Hoblitt.  All rights reserved.
     192Copyright (C) 2006-2008  Joshua Hoblitt.  All rights reserved.
    174193
    175194This program is free software; you can redistribute it and/or modify it under
Note: See TracChangeset for help on using the changeset viewer.