Changeset 214


Ignore:
Timestamp:
May 7, 2018, 11:22:05 AM (6 years ago)
Author:
g7moreau
Message:
  • Change command make-link and remove-link to dap-publish and dap-unpublish
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/project-meta/project-meta

    r213 r214  
    88use strict;
    99use warnings;
    10 use version; our $VERSION = version->declare('0.0.9');
     10use version; our $VERSION = version->declare('0.0.10');
    1111
    1212use File::Copy qw(copy);   
     
    2828   'version'               => \&cmd_version,
    2929   'check'                 => \&cmd_check,
    30    'make-link'             => \&cmd_make_link,
    31    'remove-link'           => \&cmd_remove_link,
     30   'dap-publish'           => \&cmd_dap_publish,
     31   'dap-unpublish'         => \&cmd_dap_unpublish,
    3232   'make-zip'              => \&cmd_make_zip,
    3333   'make-allfiles'         => \&cmd_make_allfiles,
     
    8888 project-meta version
    8989 project-meta check
    90  project-meta make-link
    91  project-meta remove-link
     90 project-meta dap-publish
     91 project-meta dap-unpublish
    9292 project-meta make-zip
    9393 project-meta make-allfiles
     
    123123################################################################
    124124
    125 sub cmd_make_link {
     125sub cmd_dap_publish {
    126126   my $meta = YAML::Syck::LoadFile("PROJECT-META.yml");
    127127   my $current_dir = Cwd::getcwd();
     
    168168################################################################
    169169
    170 sub cmd_remove_link {
     170sub cmd_dap_unpublish {
    171171   my $meta = YAML::Syck::LoadFile("PROJECT-META.yml");
    172172   my $current_dir = Cwd::getcwd();
     
    378378 project-meta version
    379379 project-meta check
    380  project-meta make-link
    381  project-meta remove-link
     380 project-meta dap-publish
     381 project-meta dap-unpublish
    382382 project-meta make-zip
    383383 project-meta list-license
     
    413413you can use C<yamllint> or C<ysh> commands to check just it's format.
    414414
    415 =head2 make-link
    416 
    417  project-meta make-link
    418 
    419 Create UNIX soft links on the OpeNDAP folder to the real data.
     415=head2 dap-publish
     416
     417 project-meta dap-publish
     418
     419Publish data on an OpeNDAP server.
     420Because data can be very large,
     421This command just create UNIX soft links on the OpeNDAP folder to the real data.
     422There is no copy.
    420423Files F<AUTHORS.txt>, F<LICENSE.txt> and F<COPYRIGHT.txt> are mandatory but could be generated (see below).
    421424The main keys use in the F<PROJECT-META.yml> are:
     
    435438You have to verify ouput before eval it.
    436439
    437  project-meta make-link
    438  project-meta make-link | bash
    439 
    440 =head2 remove-link
    441 
    442  project-meta remove-link
    443 
    444 Remove link in OpeNDAP folder for that projet.
     440 project-meta dap-publish
     441 project-meta dap-publish | bash
     442
     443=head2 dap-unpublish
     444
     445 project-meta dap-unpublish
     446
     447Unpublish data from the OpeNDAP server.
     448In practice, it remove links in OpeNDAP folder for that projet.
    445449Because command C<rm> is always dangerous,
    446450we use here the command C<find> limited to folder and link.
Note: See TracChangeset for help on using the changeset viewer.