arvados-cli 0.1.20140512134309 → 0.1.20140512153724

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/arv +6 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08c78d4aa760208e233f99d8d029d36b3bc9550a
4
- data.tar.gz: 93197fd46978c2a3966de3714e01ab7a93a1099a
3
+ metadata.gz: 0b4319149266ea1f17dd5aaf91c1c6af6f902e5c
4
+ data.tar.gz: 25924ce043a38ba5634959b55e3a213e0da42f97
5
5
  SHA512:
6
- metadata.gz: 37f8706dd9b5fe248607b2496abbecbbedfd44df4e0bb80dd406c4dee0a45ee3dea5ca2481839ff2790e250e6615450955bc89a63373d7135ac4f6904dd00c1e
7
- data.tar.gz: a78be9359c25625b246b7b3673b01f6df752632217a9be6041d66637bd1196ac6e491f671ae03682974b839bda0478a1fbb328d69d8c0e719661e7a2db82e09e
6
+ metadata.gz: d0ee3ecef9c414e707890d6830987c1672e6c8a2dcc01740acb8f5bc4c124cfc9ea0a92c2e6f51623e420ff9395f6fcc67f356f2b74491a6940ab3ac5b454e08
7
+ data.tar.gz: 234bdb54f03787ccc461a7c823f85866daf90172d4f669b993e7157afe6829501ad1eb530a1f8dbea8fe2d0835fca442c9eece1cfcf743d3a7b88785829f2bc8
data/bin/arv CHANGED
@@ -301,14 +301,14 @@ if global_opts[:dry_run]
301
301
  exit
302
302
  end
303
303
 
304
- request_parameters = {}.merge(method_opts)
304
+ request_parameters = {_profile:true}.merge(method_opts)
305
305
  resource_body = request_parameters.delete(resource_schema.to_sym)
306
306
  if resource_body
307
307
  request_body = {
308
308
  resource_schema => resource_body
309
309
  }
310
310
  else
311
- request_body = {}
311
+ request_body = nil
312
312
  end
313
313
 
314
314
  case api_method
@@ -335,12 +335,13 @@ when
335
335
  end
336
336
  exit 0
337
337
  else
338
- request_body[:api_token] = ENV['ARVADOS_API_TOKEN']
339
- request_body[:_profile] = true
340
338
  result = client.execute(:api_method => eval(api_method),
341
339
  :parameters => request_parameters,
342
340
  :body => request_body,
343
- :authenticated => false)
341
+ :authenticated => false,
342
+ :headers => {
343
+ authorization: 'OAuth2 '+ENV['ARVADOS_API_TOKEN']
344
+ })
344
345
  end
345
346
 
346
347
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20140512134309
4
+ version: 0.1.20140512153724
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
@@ -146,7 +146,7 @@ dependencies:
146
146
  - - "~>"
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0.8'
149
- description: This is the Arvados SDK CLI gem, git revision 100e1ab71d64e21f1c21de2fc305a6f92fa244dc
149
+ description: This is the Arvados SDK CLI gem, git revision a6f78c31607b37d207dcebada38ee05335deac50
150
150
  email: gem-dev@curoverse.com
151
151
  executables:
152
152
  - arv