vmc 0.5.0.beta.4 → 0.5.0.beta.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/vmc/cli.rb CHANGED
@@ -101,6 +101,8 @@ module VMC
101
101
  precondition
102
102
  super
103
103
  end
104
+ rescue CFoundry::Timeout => e
105
+ err(e.message)
104
106
  rescue Interrupt
105
107
  exit_status 130
106
108
  rescue Mothership::Error
data/lib/vmc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.5.0.beta.4".freeze
2
+ VERSION = "0.5.0.beta.5".freeze
3
3
  end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe VMC::CLI do
4
+ let(:cmd) { Class.new(VMC::CLI).new }
5
+
6
+ describe '#execute' do
7
+ subject do
8
+ stub(cmd).input { {} }
9
+ cmd.execute(nil, [])
10
+ end
11
+
12
+ it 'wraps Timeout::Error with a more friendly message' do
13
+ stub(cmd).precondition { raise CFoundry::Timeout.new(Net::HTTP::Get, "/foo") }
14
+
15
+ mock(cmd).err "GET /foo timed out"
16
+ subject
17
+ end
18
+ end
19
+ end
20
+
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1816304663
4
+ hash: 244434823
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 0
10
10
  - beta
11
- - 4
12
- version: 0.5.0.beta.4
11
+ - 5
12
+ version: 0.5.0.beta.5
13
13
  platform: ruby
14
14
  authors:
15
15
  - Alex Suraci
@@ -17,8 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-12-15 00:00:00 -08:00
21
- default_executable:
20
+ date: 2012-12-17 00:00:00 Z
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
24
23
  name: json_pure
@@ -74,12 +73,12 @@ dependencies:
74
73
  requirements:
75
74
  - - ~>
76
75
  - !ruby/object:Gem::Version
77
- hash: 19
76
+ hash: 17
78
77
  segments:
79
78
  - 0
80
79
  - 4
81
- - 14
82
- version: 0.4.14
80
+ - 15
81
+ version: 0.4.15
83
82
  type: :runtime
84
83
  version_requirements: *id004
85
84
  - !ruby/object:Gem::Dependency
@@ -233,110 +232,109 @@ extra_rdoc_files: []
233
232
  files:
234
233
  - LICENSE
235
234
  - Rakefile
236
- - lib/vmc/version.rb
237
- - lib/vmc/detect.rb
238
- - lib/vmc/errors.rb
239
- - lib/vmc/spacing.rb
240
- - lib/vmc/spec_helper.rb
241
- - lib/vmc/plugin.rb
242
- - lib/vmc/constants.rb
243
- - lib/vmc/cli.rb
244
- - lib/vmc/cli/organization/create.rb
245
- - lib/vmc/cli/organization/rename.rb
246
- - lib/vmc/cli/organization/orgs.rb
247
- - lib/vmc/cli/organization/base.rb
248
- - lib/vmc/cli/organization/delete.rb
249
- - lib/vmc/cli/organization/org.rb
250
- - lib/vmc/cli/start/target_interactions.rb
251
- - lib/vmc/cli/start/targets.rb
252
- - lib/vmc/cli/start/register.rb
253
- - lib/vmc/cli/start/colors.rb
254
- - lib/vmc/cli/start/target.rb
255
- - lib/vmc/cli/start/logout.rb
256
- - lib/vmc/cli/start/base.rb
257
- - lib/vmc/cli/start/info.rb
258
- - lib/vmc/cli/start/login.rb
259
- - lib/vmc/cli/route/create_route.rb
260
- - lib/vmc/cli/route/routes.rb
261
- - lib/vmc/cli/route/base.rb
262
- - lib/vmc/cli/route/delete.rb
263
- - lib/vmc/cli/app/scale.rb
264
- - lib/vmc/cli/app/health.rb
235
+ - lib/vmc/cli/app/app.rb
236
+ - lib/vmc/cli/app/apps.rb
237
+ - lib/vmc/cli/app/base.rb
238
+ - lib/vmc/cli/app/crashes.rb
239
+ - lib/vmc/cli/app/delete.rb
240
+ - lib/vmc/cli/app/deprecated.rb
241
+ - lib/vmc/cli/app/env.rb
265
242
  - lib/vmc/cli/app/files.rb
243
+ - lib/vmc/cli/app/health.rb
244
+ - lib/vmc/cli/app/instances.rb
245
+ - lib/vmc/cli/app/logs.rb
266
246
  - lib/vmc/cli/app/push/create.rb
267
247
  - lib/vmc/cli/app/push/interactions.rb
268
248
  - lib/vmc/cli/app/push/sync.rb
249
+ - lib/vmc/cli/app/push.rb
269
250
  - lib/vmc/cli/app/rename.rb
251
+ - lib/vmc/cli/app/restart.rb
270
252
  - lib/vmc/cli/app/routes.rb
271
- - lib/vmc/cli/app/deprecated.rb
272
- - lib/vmc/cli/app/logs.rb
273
- - lib/vmc/cli/app/instances.rb
253
+ - lib/vmc/cli/app/scale.rb
274
254
  - lib/vmc/cli/app/start.rb
275
- - lib/vmc/cli/app/app.rb
276
- - lib/vmc/cli/app/stop.rb
277
- - lib/vmc/cli/app/env.rb
278
- - lib/vmc/cli/app/base.rb
279
255
  - lib/vmc/cli/app/stats.rb
280
- - lib/vmc/cli/app/apps.rb
281
- - lib/vmc/cli/app/restart.rb
282
- - lib/vmc/cli/app/delete.rb
283
- - lib/vmc/cli/app/push.rb
284
- - lib/vmc/cli/app/crashes.rb
285
- - lib/vmc/cli/interactive.rb
256
+ - lib/vmc/cli/app/stop.rb
257
+ - lib/vmc/cli/domain/add_domain.rb
258
+ - lib/vmc/cli/domain/base.rb
286
259
  - lib/vmc/cli/domain/create_domain.rb
287
- - lib/vmc/cli/domain/domains.rb
288
260
  - lib/vmc/cli/domain/delete_domain.rb
289
- - lib/vmc/cli/domain/base.rb
261
+ - lib/vmc/cli/domain/domains.rb
290
262
  - lib/vmc/cli/domain/remove_domain.rb
291
- - lib/vmc/cli/domain/add_domain.rb
292
- - lib/vmc/cli/space/spaces.rb
293
- - lib/vmc/cli/space/create.rb
294
- - lib/vmc/cli/space/rename.rb
295
- - lib/vmc/cli/space/space.rb
296
- - lib/vmc/cli/space/take.rb
297
- - lib/vmc/cli/space/base.rb
298
- - lib/vmc/cli/space/delete.rb
299
- - lib/vmc/cli/service/service.rb
263
+ - lib/vmc/cli/help.rb
264
+ - lib/vmc/cli/interactive.rb
265
+ - lib/vmc/cli/organization/base.rb
266
+ - lib/vmc/cli/organization/create.rb
267
+ - lib/vmc/cli/organization/delete.rb
268
+ - lib/vmc/cli/organization/org.rb
269
+ - lib/vmc/cli/organization/orgs.rb
270
+ - lib/vmc/cli/organization/rename.rb
271
+ - lib/vmc/cli/route/base.rb
272
+ - lib/vmc/cli/route/create_route.rb
273
+ - lib/vmc/cli/route/delete.rb
274
+ - lib/vmc/cli/route/routes.rb
275
+ - lib/vmc/cli/service/base.rb
300
276
  - lib/vmc/cli/service/bind.rb
301
277
  - lib/vmc/cli/service/create.rb
278
+ - lib/vmc/cli/service/delete.rb
302
279
  - lib/vmc/cli/service/rename.rb
280
+ - lib/vmc/cli/service/service.rb
303
281
  - lib/vmc/cli/service/services.rb
304
282
  - lib/vmc/cli/service/unbind.rb
305
- - lib/vmc/cli/service/base.rb
306
- - lib/vmc/cli/service/delete.rb
307
- - lib/vmc/cli/user/passwd.rb
308
- - lib/vmc/cli/user/create.rb
283
+ - lib/vmc/cli/space/base.rb
284
+ - lib/vmc/cli/space/create.rb
285
+ - lib/vmc/cli/space/delete.rb
286
+ - lib/vmc/cli/space/rename.rb
287
+ - lib/vmc/cli/space/space.rb
288
+ - lib/vmc/cli/space/spaces.rb
289
+ - lib/vmc/cli/space/take.rb
290
+ - lib/vmc/cli/start/base.rb
291
+ - lib/vmc/cli/start/colors.rb
292
+ - lib/vmc/cli/start/info.rb
293
+ - lib/vmc/cli/start/login.rb
294
+ - lib/vmc/cli/start/logout.rb
295
+ - lib/vmc/cli/start/register.rb
296
+ - lib/vmc/cli/start/target.rb
297
+ - lib/vmc/cli/start/target_interactions.rb
298
+ - lib/vmc/cli/start/targets.rb
309
299
  - lib/vmc/cli/user/base.rb
300
+ - lib/vmc/cli/user/create.rb
310
301
  - lib/vmc/cli/user/delete.rb
302
+ - lib/vmc/cli/user/passwd.rb
311
303
  - lib/vmc/cli/user/users.rb
312
- - lib/vmc/cli/help.rb
304
+ - lib/vmc/cli.rb
305
+ - lib/vmc/constants.rb
306
+ - lib/vmc/detect.rb
307
+ - lib/vmc/errors.rb
308
+ - lib/vmc/plugin.rb
309
+ - lib/vmc/spacing.rb
310
+ - lib/vmc/spec_helper.rb
311
+ - lib/vmc/version.rb
313
312
  - lib/vmc.rb
314
- - spec/support/interact_helpers.rb
315
- - spec/support/feature_helpers.rb
313
+ - spec/assets/hello-sinatra/Gemfile
314
+ - spec/assets/hello-sinatra/main.rb
315
+ - spec/features/new_user_flow_spec.rb
316
316
  - spec/spec_helper.rb
317
- - spec/vmc/detect_spec.rb
317
+ - spec/support/feature_helpers.rb
318
+ - spec/support/interact_helpers.rb
319
+ - spec/vmc/cli/app/delete_spec.rb
320
+ - spec/vmc/cli/app/push/create_spec.rb
321
+ - spec/vmc/cli/app/push_spec.rb
322
+ - spec/vmc/cli/app/rename_spec.rb
318
323
  - spec/vmc/cli/organization/orgs_spec.rb
319
324
  - spec/vmc/cli/organization/rename_spec.rb
320
- - spec/vmc/cli/start/login_spec.rb
321
- - spec/vmc/cli/start/info_spec.rb
322
325
  - spec/vmc/cli/route/delete_route_spec.rb
323
- - spec/vmc/cli/app/push_spec.rb
324
- - spec/vmc/cli/app/push/create_spec.rb
325
- - spec/vmc/cli/app/delete_spec.rb
326
- - spec/vmc/cli/app/rename_spec.rb
327
- - spec/vmc/cli/space/spaces_spec.rb
328
- - spec/vmc/cli/space/rename_spec.rb
329
- - spec/vmc/cli/service/unbind_spec.rb
330
326
  - spec/vmc/cli/service/bind_spec.rb
331
327
  - spec/vmc/cli/service/delete_spec.rb
332
- - spec/vmc/cli/service/service_spec.rb
333
328
  - spec/vmc/cli/service/rename_spec.rb
334
- - spec/assets/hello-sinatra/Gemfile
335
- - spec/assets/hello-sinatra/main.rb
336
- - spec/assets/hello-sinatra/Gemfile.lock
337
- - spec/features/new_user_flow_spec.rb
329
+ - spec/vmc/cli/service/service_spec.rb
330
+ - spec/vmc/cli/service/unbind_spec.rb
331
+ - spec/vmc/cli/space/rename_spec.rb
332
+ - spec/vmc/cli/space/spaces_spec.rb
333
+ - spec/vmc/cli/start/info_spec.rb
334
+ - spec/vmc/cli/start/login_spec.rb
335
+ - spec/vmc/cli_spec.rb
336
+ - spec/vmc/detect_spec.rb
338
337
  - bin/vmc
339
- has_rdoc: true
340
338
  homepage: http://cloudfoundry.com/
341
339
  licenses: []
342
340
 
@@ -368,32 +366,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
368
366
  requirements: []
369
367
 
370
368
  rubyforge_project: vmc
371
- rubygems_version: 1.6.2
369
+ rubygems_version: 1.8.24
372
370
  signing_key:
373
371
  specification_version: 3
374
372
  summary: Friendly command-line interface for Cloud Foundry.
375
373
  test_files:
376
- - spec/support/interact_helpers.rb
377
- - spec/support/feature_helpers.rb
374
+ - spec/assets/hello-sinatra/Gemfile
375
+ - spec/assets/hello-sinatra/main.rb
376
+ - spec/features/new_user_flow_spec.rb
378
377
  - spec/spec_helper.rb
379
- - spec/vmc/detect_spec.rb
378
+ - spec/support/feature_helpers.rb
379
+ - spec/support/interact_helpers.rb
380
+ - spec/vmc/cli/app/delete_spec.rb
381
+ - spec/vmc/cli/app/push/create_spec.rb
382
+ - spec/vmc/cli/app/push_spec.rb
383
+ - spec/vmc/cli/app/rename_spec.rb
380
384
  - spec/vmc/cli/organization/orgs_spec.rb
381
385
  - spec/vmc/cli/organization/rename_spec.rb
382
- - spec/vmc/cli/start/login_spec.rb
383
- - spec/vmc/cli/start/info_spec.rb
384
386
  - spec/vmc/cli/route/delete_route_spec.rb
385
- - spec/vmc/cli/app/push_spec.rb
386
- - spec/vmc/cli/app/push/create_spec.rb
387
- - spec/vmc/cli/app/delete_spec.rb
388
- - spec/vmc/cli/app/rename_spec.rb
389
- - spec/vmc/cli/space/spaces_spec.rb
390
- - spec/vmc/cli/space/rename_spec.rb
391
- - spec/vmc/cli/service/unbind_spec.rb
392
387
  - spec/vmc/cli/service/bind_spec.rb
393
388
  - spec/vmc/cli/service/delete_spec.rb
394
- - spec/vmc/cli/service/service_spec.rb
395
389
  - spec/vmc/cli/service/rename_spec.rb
396
- - spec/assets/hello-sinatra/Gemfile
397
- - spec/assets/hello-sinatra/main.rb
398
- - spec/assets/hello-sinatra/Gemfile.lock
399
- - spec/features/new_user_flow_spec.rb
390
+ - spec/vmc/cli/service/service_spec.rb
391
+ - spec/vmc/cli/service/unbind_spec.rb
392
+ - spec/vmc/cli/space/rename_spec.rb
393
+ - spec/vmc/cli/space/spaces_spec.rb
394
+ - spec/vmc/cli/start/info_spec.rb
395
+ - spec/vmc/cli/start/login_spec.rb
396
+ - spec/vmc/cli_spec.rb
397
+ - spec/vmc/detect_spec.rb
@@ -1,17 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- rack (1.4.1)
5
- rack-protection (1.2.0)
6
- rack
7
- sinatra (1.3.2)
8
- rack (~> 1.3, >= 1.3.6)
9
- rack-protection (~> 1.2)
10
- tilt (~> 1.3, >= 1.3.3)
11
- tilt (1.3.3)
12
-
13
- PLATFORMS
14
- ruby
15
-
16
- DEPENDENCIES
17
- sinatra