arvados-cli 0.1.20140106150809 → 0.1.20140110131136
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.
- checksums.yaml +4 -4
- data/bin/arv +25 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4b8da101b279224b702afe71e61f75db5afd4a8
|
4
|
+
data.tar.gz: ffd6878e141e8c07129f15a682ed1876b8efba02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be0a46d1631822b8edb04211014188fb8c0194fede50ff49078812c4360fccf910452b2c86057ba5030f6dc3dd0ed349b74cc9725f194396da90b95eaea363ce
|
7
|
+
data.tar.gz: 9134c21d08a168363107a25f5a8cf1c3ea537cd707895d311ffcc65ebb66dc0b93363ce715dac814a5f19d6e454c468972675af903a0d5429afe6adc6481db43
|
data/bin/arv
CHANGED
@@ -10,6 +10,26 @@ if RUBY_VERSION < '1.9.3' then
|
|
10
10
|
EOS
|
11
11
|
end
|
12
12
|
|
13
|
+
# read authentication data from ~/.arvados if present
|
14
|
+
lineno = 0
|
15
|
+
config_file = File.expand_path('~/.arvados')
|
16
|
+
if File.exist? config_file then
|
17
|
+
File.open(config_file, 'r').each do |line|
|
18
|
+
lineno = lineno + 1
|
19
|
+
# skip comments
|
20
|
+
if line.match('^\s*#') then
|
21
|
+
next
|
22
|
+
end
|
23
|
+
var, val = line.chomp.split('=', 2)
|
24
|
+
# allow environment settings to override config files.
|
25
|
+
if var and val
|
26
|
+
ENV[var] ||= val
|
27
|
+
else
|
28
|
+
warn "#{config_file}: #{lineno}: could not parse `#{line}'"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
13
33
|
case ARGV[0]
|
14
34
|
when 'keep'
|
15
35
|
ARGV.shift
|
@@ -40,6 +60,9 @@ when 'pipeline'
|
|
40
60
|
"(see arv-run-pipeline-instance --help for details)\n"
|
41
61
|
end
|
42
62
|
abort
|
63
|
+
when 'tag'
|
64
|
+
ARGV.shift
|
65
|
+
exec `which arv-tag`.strip, *ARGV
|
43
66
|
end
|
44
67
|
|
45
68
|
ENV['ARVADOS_API_VERSION'] ||= 'v1'
|
@@ -228,7 +251,7 @@ def parse_arguments(discovery_document)
|
|
228
251
|
discovered_params.each do |k,v|
|
229
252
|
k = k.to_sym
|
230
253
|
if ['object', 'array'].index(v["type"]) and method_opts.has_key? k
|
231
|
-
if method_opts[k].match /^\//
|
254
|
+
if method_opts[k].andand.match /^\//
|
232
255
|
method_opts[k] = File.open method_opts[k], 'rb' do |f| f.read end
|
233
256
|
end
|
234
257
|
end
|
@@ -283,6 +306,7 @@ when
|
|
283
306
|
exit 0
|
284
307
|
else
|
285
308
|
request_body[:api_token] = ENV['ARVADOS_API_TOKEN']
|
309
|
+
request_body[:_profile] = true
|
286
310
|
result = client.execute(:api_method => eval(api_method),
|
287
311
|
:parameters => request_parameters,
|
288
312
|
:body => request_body,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arvados-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20140110131136
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvados Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0.8'
|
111
|
-
description: This is the Arvados SDK CLI gem, git revision
|
111
|
+
description: This is the Arvados SDK CLI gem, git revision 6696af28df909c0eb45f6cee8e7a3fc1d5658104
|
112
112
|
email: gem-dev@clinicalfuture.com
|
113
113
|
executables:
|
114
114
|
- arv
|