add "arv pipeline run" -> "arv-run-pipeline-instance" wrapper
authorTom Clegg <tom@clinicalfuture.com>
Wed, 17 Jul 2013 04:41:55 +0000 (00:41 -0400)
committerTom Clegg <tom@clinicalfuture.com>
Wed, 17 Jul 2013 04:41:55 +0000 (00:41 -0400)
sdk/cli/bin/arv

index 00a823e0517062b90008ccecb0c80fb9b377f972..fbd246ebf0655b81c6d5ab1f95bd93711ea742f6 100755 (executable)
@@ -23,7 +23,20 @@ if ARGV[0] == 'keep'
       "#{$0} keep less\n" +
       "#{$0} keep check\n"
   end
-  exit
+  abort
+end
+
+if ARGV[0] == 'pipeline'
+  ARGV.shift
+  @sub = ARGV.shift
+  if ['run'].index @sub then
+    exec `which arv-run-pipeline-instance`.strip, *ARGV
+  else
+    puts "Usage: \n" +
+      "#{$0} pipeline run [...]\n" +
+      "(see arv-run-pipeline-instance --help for details)\n"
+  end
+  abort
 end
 
 ENV['ARVADOS_API_VERSION'] ||= 'v1'