[ARVADOS] updated: bac6a08048b024a245f445ae84c5b4b881acfcad

git at public.curoverse.com git at public.curoverse.com
Wed Nov 5 11:28:21 EST 2014


Summary of changes:
 sdk/cli/bin/arv | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

       via  bac6a08048b024a245f445ae84c5b4b881acfcad (commit)
      from  d5cf000ee76060ce5e96bb4032f54e7f6b19116e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit bac6a08048b024a245f445ae84c5b4b881acfcad
Author: Brett Smith <brett at curoverse.com>
Date:   Wed Nov 5 11:27:50 2014 -0500

    Fix `arv keep copy` → `arv copy` wrapper.
    
    No issue #.

diff --git a/sdk/cli/bin/arv b/sdk/cli/bin/arv
index 8c7e6f1..35de7c6 100755
--- a/sdk/cli/bin/arv
+++ b/sdk/cli/bin/arv
@@ -113,7 +113,7 @@ def init_config
   end
 end
 
-subcommands = %w(create edit keep pipeline tag ws)
+subcommands = %w(copy create edit keep pipeline tag ws)
 
 def check_subcommands client, arvados, subcommand, global_opts, remaining_opts
   case subcommand
@@ -121,9 +121,11 @@ def check_subcommands client, arvados, subcommand, global_opts, remaining_opts
     arv_create client, arvados, global_opts, remaining_opts
   when 'edit'
     arv_edit client, arvados, global_opts, remaining_opts
+  when 'copy', 'tag', 'ws'
+    exec `which arv-#{subcommand}`.strip, *remaining_opts
   when 'keep'
     @sub = remaining_opts.shift
-    if ['get', 'put', 'ls', 'normalize', 'copy'].index @sub then
+    if ['get', 'put', 'ls', 'normalize'].index @sub then
       # Native Arvados
       exec `which arv-#{@sub}`.strip, *remaining_opts
     elsif ['less', 'check'].index @sub then
@@ -147,10 +149,6 @@ def check_subcommands client, arvados, subcommand, global_opts, remaining_opts
       puts "Available methods: run"
     end
     abort
-  when 'tag'
-    exec `which arv-tag`.strip, *remaining_opts
-  when 'ws'
-    exec `which arv-ws`.strip, *remaining_opts
   end
 end
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list