arvados-cli 0.1.20130711111434 → 0.1.20130717045244

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/arv CHANGED
@@ -13,16 +13,30 @@ end
13
13
  if ARGV[0] == 'keep'
14
14
  ARGV.shift
15
15
  @sub = ARGV.shift
16
- if @sub == 'ls' or @sub == 'get' or @sub == 'put' or @sub == 'less' then
17
- exec(`which wh#{@sub}`.strip + ' ' + ARGV.join(' '))
16
+ if ['ls', 'get', 'put', 'less', 'check'].index @sub then
17
+ exec `which wh#{@sub}`.strip, *ARGV
18
18
  else
19
19
  puts "Usage: \n" +
20
20
  "#{$0} keep ls\n" +
21
21
  "#{$0} keep get\n" +
22
22
  "#{$0} keep put\n" +
23
- "#{$0} keep less\n"
23
+ "#{$0} keep less\n" +
24
+ "#{$0} keep check\n"
24
25
  end
25
- exit
26
+ abort
27
+ end
28
+
29
+ if ARGV[0] == 'pipeline'
30
+ ARGV.shift
31
+ @sub = ARGV.shift
32
+ if ['run'].index @sub then
33
+ exec `which arv-run-pipeline-instance`.strip, *ARGV
34
+ else
35
+ puts "Usage: \n" +
36
+ "#{$0} pipeline run [...]\n" +
37
+ "(see arv-run-pipeline-instance --help for details)\n"
38
+ end
39
+ abort
26
40
  end
27
41
 
28
42
  ENV['ARVADOS_API_VERSION'] ||= 'v1'
@@ -317,7 +317,7 @@ class WhRunPipelineInstance
317
317
  params_args.shift if params_args[0] == '--'
318
318
  params = {}
319
319
  while !params_args.empty?
320
- if (re = params_args[0].match /^(--)?([^-].*?)=(.)/)
320
+ if (re = params_args[0].match /^(--)?([^-].*?)=(.+)/)
321
321
  params[re[2]] = re[3]
322
322
  params_args.shift
323
323
  elsif params_args.size > 1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados-cli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 40261422222863
4
+ hash: 40261434090467
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 20130711111434
10
- version: 0.1.20130711111434
9
+ - 20130717045244
10
+ version: 0.1.20130717045244
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arvados Authors
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-07-11 00:00:00 Z
18
+ date: 2013-07-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: google-api-client
@@ -112,18 +112,18 @@ dependencies:
112
112
  version: 2.0.3
113
113
  type: :runtime
114
114
  version_requirements: *id006
115
- description: This is the Arvados SDK CLI gem, git revision 8842201eda70c5ee97b86a7751b0e9f46c6a8388
115
+ description: This is the Arvados SDK CLI gem, git revision 169b8e0907cd03859c6b32366d278ca9f79b8ef3
116
116
  email: gem-dev@clinicalfuture.com
117
117
  executables:
118
118
  - arv
119
- - wh-run-pipeline-instance
119
+ - arv-run-pipeline-instance
120
120
  extensions: []
121
121
 
122
122
  extra_rdoc_files: []
123
123
 
124
124
  files:
125
125
  - bin/arv
126
- - bin/wh-run-pipeline-instance
126
+ - bin/arv-run-pipeline-instance
127
127
  homepage: http://arvados.org
128
128
  licenses:
129
129
  - Apache License, Version 2.0