arvados-cli 0.1.20141105204412 → 0.1.20141112222031

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/arv +1 -7
  3. data/bin/arv-tag +10 -5
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a34ccd344914c54c8a356e2588d88d96702e48d6
4
- data.tar.gz: 423c472d261c79db27f1543373c69f9da2292ca6
3
+ metadata.gz: 4c391c78633a3dfde9b38334757f75784c2bf2d0
4
+ data.tar.gz: e0755301bebfe524c73890fdf4a6ffb099339e69
5
5
  SHA512:
6
- metadata.gz: f969df92c49b053db6c7d7857102ca38ff578828cfe372f934b32050441685c2e8693596b12c75ffaa10dbe5b5d69fb8b9ef3f7ff575bb8e7cf8a344334d92e7
7
- data.tar.gz: 5b6c8edc6da8b1a77c0583d1f07baeef5c016f4e1183829d2eec5a92713d3e142c2627102a1348bb248cbba793540b26679ab59740ee57326ed77f2f9150be20
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 usage
9
- abort "Usage:\n" +
10
- "arv tag add tag1 [tag2 ...] --objects object_uuid1 [object_uuid2...]\n" +
11
- "arv tag remove tag1 [tag2 ...] --objects object_uuid1 [object_uuid2...]\n" +
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 "arvados cli client"
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.20141105204412
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-05 00:00:00.000000000 Z
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 788ecdf8085f5e69cd3dc960f510b49f11432cb3
181
+ description: Arvados command line tools, git commit 5be66e86ac84d7d46c8503c3c136cb144222e4bf
182
182
  email: gem-dev@curoverse.com
183
183
  executables:
184
184
  - arv