vmc 0.4.0.beta.52 → 0.4.0.beta.53

Sign up to get free protection for your applications and to get access to all the features.
@@ -104,6 +104,8 @@ module VMC
104
104
  rescue UserError => e
105
105
  log_error(e)
106
106
  err e.message
107
+ rescue SystemExit
108
+ raise
107
109
  rescue CFoundry::Denied => e
108
110
  if !$vmc_asked_auth && e.error_code == 200
109
111
  $vmc_asked_auth = true
@@ -75,7 +75,7 @@ module VMC
75
75
  rows = apps.collect { |a|
76
76
  [ c(a.name, :name),
77
77
  app_status(a),
78
- "#{human_mb(a.memory)} x #{a.total_instances}",
78
+ "#{a.total_instances} x #{human_mb(a.memory)}",
79
79
  v2? && (a.production ? "prod" : "dev"),
80
80
  a.runtime.name,
81
81
  a.url
@@ -50,12 +50,14 @@ module VMC
50
50
  end
51
51
  end
52
52
 
53
- def handler(which, state)
53
+ def handler(event, state)
54
54
  ans = state.answer
55
55
  pos = state.position
56
56
 
57
+ exit if event == :eof
58
+
57
59
  if state.default?
58
- if which.is_a?(Array) and which[0] == :key
60
+ if event.is_a?(Array) and event[0] == :key
59
61
  # initial non-movement keypress clears default answer
60
62
  clear_input(state)
61
63
  else
@@ -66,7 +68,7 @@ module VMC
66
68
  state.clear_default!
67
69
 
68
70
  # tab with a default accepts it and moves to the end
69
- if which == :tab
71
+ if event == :tab
70
72
  state.goto(ans.size)
71
73
  else
72
74
  super
@@ -75,7 +77,7 @@ module VMC
75
77
  super
76
78
  end
77
79
 
78
- print "\n" if which == :enter
80
+ print "\n" if event == :enter
79
81
  end
80
82
 
81
83
  class CFState < ::Interactive::InputState
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.0.beta.52"
2
+ VERSION = "0.4.0.beta.53"
3
3
  end
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: -1036793520
4
+ hash: 3537657029
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 0
10
10
  - beta
11
- - 52
12
- version: 0.4.0.beta.52
11
+ - 53
12
+ version: 0.4.0.beta.53
13
13
  platform: ruby
14
14
  authors:
15
15
  - VMware
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-09-14 00:00:00 Z
20
+ date: 2012-09-17 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: json_pure
@@ -297,12 +297,12 @@ dependencies:
297
297
  requirements:
298
298
  - - ~>
299
299
  - !ruby/object:Gem::Version
300
- hash: 5
300
+ hash: 3
301
301
  segments:
302
302
  - 0
303
303
  - 4
304
- - 5
305
- version: 0.4.5
304
+ - 6
305
+ version: 0.4.6
306
306
  type: :runtime
307
307
  version_requirements: *id017
308
308
  - !ruby/object:Gem::Dependency