arvados-cli 0.1.20140325161148 → 0.1.20140325170159

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/arv +12 -9
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b62cfb9115c1a5ff2d8ccdd5f28363833edf68e0
4
- data.tar.gz: d4a4c7d558a0e355bd166431771a3062f60027da
3
+ metadata.gz: 7bc87835af9201546b91d222a4942d3700d8b43f
4
+ data.tar.gz: 1aa588eb5a0b7c7fd277dbbe239fcc8a36385c0c
5
5
  SHA512:
6
- metadata.gz: 77b8b40c8018d06bcb94328ac04448bf1d4bd43a383ab198ed884e6fb00e6287daf3d466869963851ddd6a19b7db8f0e29c00215a2c3fe3484441041d677d292
7
- data.tar.gz: 5772d05301529caa21b0138bb79531e94492417b7d8e7ac7b3a535aed28d0ef8ce84c2ba3c699ef4bf091058a13cef21787d61c0be2c4024d22931cb55ee6d17
6
+ metadata.gz: a319f1e8169f62f507a75ac9d825972115614d98021952a8d8e1a20b0049a0fef7927b9cc512c14aaca4e5ec253c99abe614c5a1d30cfcf19db4176179cf8490
7
+ data.tar.gz: 8a183574806f91acf92f251e5c4f350fbc36d4ce07d0fc52691382423e3e87ed34decd9b6cd17d197fa8625c76514ee60befc8500daa937a571e1ef93f69c1a2
data/bin/arv CHANGED
@@ -89,7 +89,7 @@ begin
89
89
  rescue LoadError
90
90
  abort <<-EOS
91
91
 
92
- Please install all required gems:
92
+ Please install all required gems:
93
93
 
94
94
  gem install activesupport andand curb google-api-client json oj trollop
95
95
 
@@ -148,8 +148,13 @@ class ArvadosClient < Google::APIClient
148
148
  end
149
149
  end
150
150
 
151
- client = ArvadosClient.new(:host => ENV['ARVADOS_API_HOST'], :application_name => 'arvados-cli', :application_version => '1.0')
152
- arvados = client.discovered_api('arvados', ENV['ARVADOS_API_VERSION'])
151
+ begin
152
+ client = ArvadosClient.new(:host => ENV['ARVADOS_API_HOST'], :application_name => 'arvados-cli', :application_version => '1.0')
153
+ arvados = client.discovered_api('arvados', ENV['ARVADOS_API_VERSION'])
154
+ rescue Exception => e
155
+ puts "Failed to connect to Arvados API server: #{e}"
156
+ exit 1
157
+ end
153
158
 
154
159
  def to_boolean(s)
155
160
  !!(s =~ /^(true|t|yes|y|1)$/i)
@@ -170,8 +175,8 @@ def help_methods(discovery_document, resource, method=nil)
170
175
  end
171
176
  banner += "\n"
172
177
  STDERR.puts banner
173
-
174
- if not method.nil? and method != '--help' then
178
+
179
+ if not method.nil? and method != '--help' then
175
180
  Trollop::die ("Unknown method #{method.inspect} " +
176
181
  "for resource #{resource.inspect}")
177
182
  end
@@ -194,7 +199,7 @@ def help_resources(discovery_document, resource)
194
199
  banner += "\n"
195
200
  STDERR.puts banner
196
201
 
197
- if not resource.nil? and resource != '--help' then
202
+ if not resource.nil? and resource != '--help' then
198
203
  Trollop::die "Unknown resource type #{resource.inspect}"
199
204
  end
200
205
  exit 255
@@ -320,7 +325,7 @@ when
320
325
  curl.headers['Accept'] = 'text/plain'
321
326
  curl.headers['Authorization'] = "OAuth2 #{ENV['ARVADOS_API_TOKEN']}"
322
327
  if ENV['ARVADOS_API_HOST_INSECURE']
323
- curl.ssl_verify_peer = false
328
+ curl.ssl_verify_peer = false
324
329
  curl.ssl_verify_host = false
325
330
  end
326
331
  if global_opts[:verbose]
@@ -364,5 +369,3 @@ else
364
369
  puts results['uuid']
365
370
  end
366
371
  end
367
-
368
-
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.20140325161148
4
+ version: 0.1.20140325170159
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
@@ -132,7 +132,7 @@ dependencies:
132
132
  - - "~>"
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0.8'
135
- description: This is the Arvados SDK CLI gem, git revision e102a3b3100577137def302ecd0f810bc46b808a
135
+ description: This is the Arvados SDK CLI gem, git revision 921c13a95c2d13c94de74601e5bc26e5b0c71c31
136
136
  email: gem-dev@curoverse.com
137
137
  executables:
138
138
  - arv