arvados-cli 0.1.20141105204412 → 0.1.20141112222031
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/arv +1 -7
- data/bin/arv-tag +10 -5
- 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: 4c391c78633a3dfde9b38334757f75784c2bf2d0
|
4
|
+
data.tar.gz: e0755301bebfe524c73890fdf4a6ffb099339e69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d5a5216800d15ac2bc28acbac5b63f769dadaab5725436879a46a8ca8cac755cec1f154e2e203e27eb95972d1d7e7f1fecb1dc04faa3c0cba2343943529657f
|
7
|
+
data.tar.gz: 6eb68d20b17ade1400a41eff487e8fa3abc1a8ce5961dbf0c2c54431a83f4646456f2a3aab88165ebcd2e8b5f31aa3a489f0052ef585fc116c8f462276a032cb
|
data/bin/arv
CHANGED
@@ -122,7 +122,7 @@ def check_subcommands client, arvados, subcommand, global_opts, remaining_opts
|
|
122
122
|
arv_create client, arvados, global_opts, remaining_opts
|
123
123
|
when 'edit'
|
124
124
|
arv_edit client, arvados, global_opts, remaining_opts
|
125
|
-
when 'copy', 'tag', 'ws'
|
125
|
+
when 'copy', 'tag', 'ws', 'run'
|
126
126
|
exec `which arv-#{subcommand}`.strip, *remaining_opts
|
127
127
|
when 'keep'
|
128
128
|
@sub = remaining_opts.shift
|
@@ -150,12 +150,6 @@ def check_subcommands client, arvados, subcommand, global_opts, remaining_opts
|
|
150
150
|
puts "Available methods: run"
|
151
151
|
end
|
152
152
|
abort
|
153
|
-
when 'run'
|
154
|
-
exec `which arv-run`.strip, *remaining_opts
|
155
|
-
when 'tag'
|
156
|
-
exec `which arv-tag`.strip, *remaining_opts
|
157
|
-
when 'ws'
|
158
|
-
exec `which arv-ws`.strip, *remaining_opts
|
159
153
|
end
|
160
154
|
end
|
161
155
|
|
data/bin/arv-tag
CHANGED
@@ -5,13 +5,17 @@
|
|
5
5
|
# arv tag remove tag1 [tag2 ...] --object obj_uuid1 [--object obj_uuid2 ...]
|
6
6
|
# arv tag remove tag1 [tag2 ...] --all
|
7
7
|
|
8
|
-
def
|
9
|
-
|
10
|
-
"arv tag add tag1 [tag2 ...] --
|
11
|
-
"arv tag remove tag1 [tag2 ...] --
|
8
|
+
def usage_string
|
9
|
+
return "\nUsage:\n" +
|
10
|
+
"arv tag add tag1 [tag2 ...] --object object_uuid1 [object_uuid2...]\n" +
|
11
|
+
"arv tag remove tag1 [tag2 ...] --object object_uuid1 [object_uuid2...]\n" +
|
12
12
|
"arv tag remove --all\n"
|
13
13
|
end
|
14
14
|
|
15
|
+
def usage
|
16
|
+
abort usage_string
|
17
|
+
end
|
18
|
+
|
15
19
|
def api_call(method, parameters:{}, request_body:{})
|
16
20
|
request_body[:api_token] = ENV['ARVADOS_API_TOKEN']
|
17
21
|
result = $client.execute(:api_method => method,
|
@@ -147,7 +151,8 @@ class Google::APIClient
|
|
147
151
|
end
|
148
152
|
|
149
153
|
global_opts = Trollop::options do
|
150
|
-
banner
|
154
|
+
banner usage_string
|
155
|
+
banner ""
|
151
156
|
opt :dry_run, "Don't actually do anything", :short => "-n"
|
152
157
|
opt :verbose, "Print some things on stderr", :short => "-v"
|
153
158
|
opt :uuid, "Return the UUIDs of the objects in the response, one per line (default)", :short => nil
|
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.20141112222031
|
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-11-
|
11
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arvados
|
@@ -178,7 +178,7 @@ dependencies:
|
|
178
178
|
- - "<"
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: 1.0.0
|
181
|
-
description: Arvados command line tools, git commit
|
181
|
+
description: Arvados command line tools, git commit 5be66e86ac84d7d46c8503c3c136cb144222e4bf
|
182
182
|
email: gem-dev@curoverse.com
|
183
183
|
executables:
|
184
184
|
- arv
|