vmc 0.4.0.beta.5 → 0.4.0.beta.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/{vmc-ng/LICENSE → LICENSE} +0 -0
  2. data/{vmc-ng/Rakefile → Rakefile} +0 -0
  3. data/bin/vmc +10 -11
  4. data/{vmc-ng/lib → lib}/vmc.rb +0 -0
  5. data/{vmc-ng/lib → lib}/vmc/cli.rb +17 -9
  6. data/{vmc-ng/lib → lib}/vmc/cli/app.rb +31 -31
  7. data/{vmc-ng/lib → lib}/vmc/cli/better_help.rb +0 -0
  8. data/{vmc-ng/lib → lib}/vmc/cli/command.rb +6 -6
  9. data/{vmc-ng/lib → lib}/vmc/cli/dots.rb +63 -8
  10. data/{vmc-ng/lib → lib}/vmc/cli/service.rb +6 -6
  11. data/{vmc-ng/lib → lib}/vmc/cli/user.rb +2 -2
  12. data/{vmc-ng/lib → lib}/vmc/constants.rb +1 -0
  13. data/{vmc-ng/lib → lib}/vmc/detect.rb +0 -0
  14. data/{vmc-ng/lib → lib}/vmc/errors.rb +0 -0
  15. data/{vmc-ng/lib → lib}/vmc/plugin.rb +0 -0
  16. data/lib/vmc/version.rb +3 -0
  17. metadata +33 -281
  18. data/vmc-ng/bin/vmc +0 -14
  19. data/vmc-ng/lib/vmc/version.rb +0 -3
  20. data/vmc/LICENSE +0 -24
  21. data/vmc/README.md +0 -102
  22. data/vmc/Rakefile +0 -101
  23. data/vmc/bin/vmc +0 -6
  24. data/vmc/caldecott_helper/Gemfile +0 -10
  25. data/vmc/caldecott_helper/Gemfile.lock +0 -48
  26. data/vmc/caldecott_helper/server.rb +0 -43
  27. data/vmc/config/clients.yml +0 -17
  28. data/vmc/config/micro/offline.conf +0 -2
  29. data/vmc/config/micro/paths.yml +0 -22
  30. data/vmc/config/micro/refresh_ip.rb +0 -20
  31. data/vmc/lib/cli.rb +0 -47
  32. data/vmc/lib/cli/commands/admin.rb +0 -80
  33. data/vmc/lib/cli/commands/apps.rb +0 -1126
  34. data/vmc/lib/cli/commands/base.rb +0 -227
  35. data/vmc/lib/cli/commands/manifest.rb +0 -56
  36. data/vmc/lib/cli/commands/micro.rb +0 -115
  37. data/vmc/lib/cli/commands/misc.rb +0 -129
  38. data/vmc/lib/cli/commands/services.rb +0 -180
  39. data/vmc/lib/cli/commands/user.rb +0 -65
  40. data/vmc/lib/cli/config.rb +0 -173
  41. data/vmc/lib/cli/console_helper.rb +0 -160
  42. data/vmc/lib/cli/core_ext.rb +0 -122
  43. data/vmc/lib/cli/errors.rb +0 -19
  44. data/vmc/lib/cli/frameworks.rb +0 -265
  45. data/vmc/lib/cli/manifest_helper.rb +0 -302
  46. data/vmc/lib/cli/runner.rb +0 -531
  47. data/vmc/lib/cli/services_helper.rb +0 -84
  48. data/vmc/lib/cli/tunnel_helper.rb +0 -332
  49. data/vmc/lib/cli/usage.rb +0 -115
  50. data/vmc/lib/cli/version.rb +0 -7
  51. data/vmc/lib/cli/zip_util.rb +0 -77
  52. data/vmc/lib/vmc.rb +0 -3
  53. data/vmc/lib/vmc/client.rb +0 -471
  54. data/vmc/lib/vmc/const.rb +0 -22
  55. data/vmc/lib/vmc/micro.rb +0 -56
  56. data/vmc/lib/vmc/micro/switcher/base.rb +0 -97
  57. data/vmc/lib/vmc/micro/switcher/darwin.rb +0 -19
  58. data/vmc/lib/vmc/micro/switcher/dummy.rb +0 -15
  59. data/vmc/lib/vmc/micro/switcher/linux.rb +0 -16
  60. data/vmc/lib/vmc/micro/switcher/windows.rb +0 -31
  61. data/vmc/lib/vmc/micro/vmrun.rb +0 -158
@@ -32,7 +32,7 @@ module VMC
32
32
  service.version = version
33
33
  service.tier = "free"
34
34
 
35
- with_progress("Creating service #{c(service.name, :blue)}") do
35
+ with_progress("Creating service #{c(service.name, :name)}") do
36
36
  service.create!
37
37
  end
38
38
  end
@@ -49,7 +49,7 @@ module VMC
49
49
  name ||= input(:name, client.services.collect(&:name))
50
50
  appname ||= input(:app, client.apps.collect(&:name))
51
51
 
52
- with_progress("Binding #{c(name, :blue)} to #{c(appname, :blue)}") do
52
+ with_progress("Binding #{c(name, :name)} to #{c(appname, :name)}") do
53
53
  client.app(appname).bind(name)
54
54
  end
55
55
  end
@@ -68,7 +68,7 @@ module VMC
68
68
  app = client.app(appname)
69
69
  name ||= input(:name, app.services)
70
70
 
71
- with_progress("Unbinding #{c(name, :blue)} from #{c(appname, :blue)}") do
71
+ with_progress("Unbinding #{c(name, :name)} from #{c(appname, :name)}") do
72
72
  app.unbind(name)
73
73
  end
74
74
  end
@@ -84,7 +84,7 @@ module VMC
84
84
  flag(:all, :default => false)
85
85
  def delete(name = nil)
86
86
  if input(:all)
87
- return unless input(:really, "ALL SERVICES", :red)
87
+ return unless input(:really, "ALL SERVICES", :bad)
88
88
 
89
89
  with_progress("Deleting all services") do
90
90
  client.services.collect(&:delete!)
@@ -100,9 +100,9 @@ module VMC
100
100
  name = input(:name, services.collect(&:name))
101
101
  end
102
102
 
103
- return unless input(:really, name, :blue)
103
+ return unless input(:really, name, :name)
104
104
 
105
- with_progress("Deleting #{c(name, :blue)}") do
105
+ with_progress("Deleting #{c(name, :name)}") do
106
106
  client.service(name).delete!
107
107
  end
108
108
  ensure
@@ -29,12 +29,12 @@ module VMC
29
29
  desc "delete [EMAIL]", "Delete a user"
30
30
  group :admin, :user, :hidden => true
31
31
  flag(:really) { |email|
32
- force? || ask("Really delete user #{c(email, :blue)}?", :default => false)
32
+ force? || ask("Really delete user #{c(email, :name)}?", :default => false)
33
33
  }
34
34
  def delete(email)
35
35
  return unless input(:really, email)
36
36
 
37
- with_progress("Deleting #{c(email, :blue)}") do
37
+ with_progress("Deleting #{c(email, :name)}") do
38
38
  client.user(email).delete!
39
39
  end
40
40
  ensure
@@ -6,5 +6,6 @@ module VMC
6
6
  PLUGINS_FILE = "#{CONFIG_DIR}/plugins.yml"
7
7
  TARGET_FILE = "#{CONFIG_DIR}/target"
8
8
  TOKENS_FILE = "#{CONFIG_DIR}/tokens.yml"
9
+ COLORS_FILE = "#{CONFIG_DIR}/colors.yml"
9
10
  CRASH_FILE = "#{CONFIG_DIR}/crash"
10
11
  end
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ module VMC
2
+ VERSION = "0.4.0.beta.6"
3
+ end
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196457
4
+ hash: 62196463
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 0
10
10
  - beta
11
- - 5
12
- version: 0.4.0.beta.5
11
+ - 6
12
+ version: 0.4.0.beta.6
13
13
  platform: ruby
14
14
  authors:
15
- - VMware
15
+ - Alex Suraci
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
@@ -23,196 +23,6 @@ dependencies:
23
23
  name: json_pure
24
24
  prerelease: false
25
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - <
29
- - !ruby/object:Gem::Version
30
- hash: 11
31
- segments:
32
- - 1
33
- - 7
34
- - 0
35
- version: 1.7.0
36
- - - ">="
37
- - !ruby/object:Gem::Version
38
- hash: 1
39
- segments:
40
- - 1
41
- - 5
42
- - 1
43
- version: 1.5.1
44
- type: :runtime
45
- version_requirements: *id001
46
- - !ruby/object:Gem::Dependency
47
- name: rubyzip
48
- prerelease: false
49
- requirement: &id002 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- hash: 51
55
- segments:
56
- - 0
57
- - 9
58
- - 4
59
- version: 0.9.4
60
- type: :runtime
61
- version_requirements: *id002
62
- - !ruby/object:Gem::Dependency
63
- name: rest-client
64
- prerelease: false
65
- requirement: &id003 !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - <
69
- - !ruby/object:Gem::Version
70
- hash: 11
71
- segments:
72
- - 1
73
- - 7
74
- - 0
75
- version: 1.7.0
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 13
79
- segments:
80
- - 1
81
- - 6
82
- - 1
83
- version: 1.6.1
84
- type: :runtime
85
- version_requirements: *id003
86
- - !ruby/object:Gem::Dependency
87
- name: terminal-table
88
- prerelease: false
89
- requirement: &id004 !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ~>
93
- - !ruby/object:Gem::Version
94
- hash: 3
95
- segments:
96
- - 1
97
- - 4
98
- - 2
99
- version: 1.4.2
100
- type: :runtime
101
- version_requirements: *id004
102
- - !ruby/object:Gem::Dependency
103
- name: interact
104
- prerelease: false
105
- requirement: &id005 !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ~>
109
- - !ruby/object:Gem::Version
110
- hash: 15
111
- segments:
112
- - 0
113
- - 4
114
- - 0
115
- version: 0.4.0
116
- type: :runtime
117
- version_requirements: *id005
118
- - !ruby/object:Gem::Dependency
119
- name: addressable
120
- prerelease: false
121
- requirement: &id006 !ruby/object:Gem::Requirement
122
- none: false
123
- requirements:
124
- - - ~>
125
- - !ruby/object:Gem::Version
126
- hash: 11
127
- segments:
128
- - 2
129
- - 2
130
- - 6
131
- version: 2.2.6
132
- type: :runtime
133
- version_requirements: *id006
134
- - !ruby/object:Gem::Dependency
135
- name: uuidtools
136
- prerelease: false
137
- requirement: &id007 !ruby/object:Gem::Requirement
138
- none: false
139
- requirements:
140
- - - ~>
141
- - !ruby/object:Gem::Version
142
- hash: 11
143
- segments:
144
- - 2
145
- - 1
146
- - 0
147
- version: 2.1.0
148
- type: :runtime
149
- version_requirements: *id007
150
- - !ruby/object:Gem::Dependency
151
- name: rb-readline
152
- prerelease: false
153
- requirement: &id008 !ruby/object:Gem::Requirement
154
- none: false
155
- requirements:
156
- - - ~>
157
- - !ruby/object:Gem::Version
158
- hash: 11
159
- segments:
160
- - 0
161
- - 4
162
- - 2
163
- version: 0.4.2
164
- type: :runtime
165
- version_requirements: *id008
166
- - !ruby/object:Gem::Dependency
167
- name: rake
168
- prerelease: false
169
- requirement: &id009 !ruby/object:Gem::Requirement
170
- none: false
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- hash: 3
175
- segments:
176
- - 0
177
- version: "0"
178
- type: :runtime
179
- version_requirements: *id009
180
- - !ruby/object:Gem::Dependency
181
- name: rspec
182
- prerelease: false
183
- requirement: &id010 !ruby/object:Gem::Requirement
184
- none: false
185
- requirements:
186
- - - ~>
187
- - !ruby/object:Gem::Version
188
- hash: 27
189
- segments:
190
- - 1
191
- - 3
192
- - 0
193
- version: 1.3.0
194
- type: :runtime
195
- version_requirements: *id010
196
- - !ruby/object:Gem::Dependency
197
- name: webmock
198
- prerelease: false
199
- requirement: &id011 !ruby/object:Gem::Requirement
200
- none: false
201
- requirements:
202
- - - ~>
203
- - !ruby/object:Gem::Version
204
- hash: 3
205
- segments:
206
- - 1
207
- - 5
208
- - 0
209
- version: 1.5.0
210
- type: :runtime
211
- version_requirements: *id011
212
- - !ruby/object:Gem::Dependency
213
- name: json_pure
214
- prerelease: false
215
- requirement: &id012 !ruby/object:Gem::Requirement
216
26
  none: false
217
27
  requirements:
218
28
  - - ~>
@@ -224,11 +34,11 @@ dependencies:
224
34
  - 5
225
35
  version: 1.6.5
226
36
  type: :runtime
227
- version_requirements: *id012
37
+ version_requirements: *id001
228
38
  - !ruby/object:Gem::Dependency
229
39
  name: interact
230
40
  prerelease: false
231
- requirement: &id013 !ruby/object:Gem::Requirement
41
+ requirement: &id002 !ruby/object:Gem::Requirement
232
42
  none: false
233
43
  requirements:
234
44
  - - ~>
@@ -240,11 +50,11 @@ dependencies:
240
50
  - 1
241
51
  version: 0.4.1
242
52
  type: :runtime
243
- version_requirements: *id013
53
+ version_requirements: *id002
244
54
  - !ruby/object:Gem::Dependency
245
55
  name: cfoundry
246
56
  prerelease: false
247
- requirement: &id014 !ruby/object:Gem::Requirement
57
+ requirement: &id003 !ruby/object:Gem::Requirement
248
58
  none: false
249
59
  requirements:
250
60
  - - ~>
@@ -256,11 +66,11 @@ dependencies:
256
66
  - 0
257
67
  version: 0.2.0
258
68
  type: :runtime
259
- version_requirements: *id014
69
+ version_requirements: *id003
260
70
  - !ruby/object:Gem::Dependency
261
71
  name: thor
262
72
  prerelease: false
263
- requirement: &id015 !ruby/object:Gem::Requirement
73
+ requirement: &id004 !ruby/object:Gem::Requirement
264
74
  none: false
265
75
  requirements:
266
76
  - - ~>
@@ -272,11 +82,11 @@ dependencies:
272
82
  - 6
273
83
  version: 0.14.6
274
84
  type: :runtime
275
- version_requirements: *id015
85
+ version_requirements: *id004
276
86
  - !ruby/object:Gem::Dependency
277
87
  name: manifests-vmc-plugin
278
88
  prerelease: false
279
- requirement: &id016 !ruby/object:Gem::Requirement
89
+ requirement: &id005 !ruby/object:Gem::Requirement
280
90
  none: false
281
91
  requirements:
282
92
  - - ~>
@@ -288,25 +98,10 @@ dependencies:
288
98
  - 0
289
99
  version: 0.2.0
290
100
  type: :runtime
291
- version_requirements: *id016
292
- - !ruby/object:Gem::Dependency
293
- name: tunnel-vmc-plugin
294
- prerelease: false
295
- requirement: &id017 !ruby/object:Gem::Requirement
296
- none: false
297
- requirements:
298
- - - ~>
299
- - !ruby/object:Gem::Version
300
- hash: 27
301
- segments:
302
- - 0
303
- - 1
304
- - 0
305
- version: 0.1.0
306
- type: :runtime
307
- version_requirements: *id017
101
+ version_requirements: *id005
308
102
  description:
309
- email: support@vmware.com
103
+ email:
104
+ - asuraci@vmware.com
310
105
  executables:
311
106
  - vmc
312
107
  extensions: []
@@ -314,66 +109,23 @@ extensions: []
314
109
  extra_rdoc_files: []
315
110
 
316
111
  files:
317
- - vmc/LICENSE
318
- - vmc/README.md
319
- - vmc/Rakefile
320
- - vmc/config/clients.yml
321
- - vmc/config/micro/offline.conf
322
- - vmc/config/micro/paths.yml
323
- - vmc/config/micro/refresh_ip.rb
324
- - vmc/lib/cli/commands/admin.rb
325
- - vmc/lib/cli/commands/apps.rb
326
- - vmc/lib/cli/commands/base.rb
327
- - vmc/lib/cli/commands/manifest.rb
328
- - vmc/lib/cli/commands/micro.rb
329
- - vmc/lib/cli/commands/misc.rb
330
- - vmc/lib/cli/commands/services.rb
331
- - vmc/lib/cli/commands/user.rb
332
- - vmc/lib/cli/config.rb
333
- - vmc/lib/cli/console_helper.rb
334
- - vmc/lib/cli/core_ext.rb
335
- - vmc/lib/cli/errors.rb
336
- - vmc/lib/cli/frameworks.rb
337
- - vmc/lib/cli/manifest_helper.rb
338
- - vmc/lib/cli/runner.rb
339
- - vmc/lib/cli/services_helper.rb
340
- - vmc/lib/cli/tunnel_helper.rb
341
- - vmc/lib/cli/usage.rb
342
- - vmc/lib/cli/version.rb
343
- - vmc/lib/cli/zip_util.rb
344
- - vmc/lib/cli.rb
345
- - vmc/lib/vmc/client.rb
346
- - vmc/lib/vmc/const.rb
347
- - vmc/lib/vmc/micro/switcher/base.rb
348
- - vmc/lib/vmc/micro/switcher/darwin.rb
349
- - vmc/lib/vmc/micro/switcher/dummy.rb
350
- - vmc/lib/vmc/micro/switcher/linux.rb
351
- - vmc/lib/vmc/micro/switcher/windows.rb
352
- - vmc/lib/vmc/micro/vmrun.rb
353
- - vmc/lib/vmc/micro.rb
354
- - vmc/lib/vmc.rb
355
- - vmc/caldecott_helper/Gemfile
356
- - vmc/caldecott_helper/Gemfile.lock
357
- - vmc/caldecott_helper/server.rb
358
- - vmc/bin/vmc
359
- - vmc-ng/LICENSE
360
- - vmc-ng/Rakefile
361
- - vmc-ng/lib/vmc/cli/app.rb
362
- - vmc-ng/lib/vmc/cli/better_help.rb
363
- - vmc-ng/lib/vmc/cli/command.rb
364
- - vmc-ng/lib/vmc/cli/dots.rb
365
- - vmc-ng/lib/vmc/cli/service.rb
366
- - vmc-ng/lib/vmc/cli/user.rb
367
- - vmc-ng/lib/vmc/cli.rb
368
- - vmc-ng/lib/vmc/constants.rb
369
- - vmc-ng/lib/vmc/detect.rb
370
- - vmc-ng/lib/vmc/errors.rb
371
- - vmc-ng/lib/vmc/plugin.rb
372
- - vmc-ng/lib/vmc/version.rb
373
- - vmc-ng/lib/vmc.rb
374
- - vmc-ng/bin/vmc
112
+ - LICENSE
113
+ - Rakefile
114
+ - lib/vmc/cli/app.rb
115
+ - lib/vmc/cli/better_help.rb
116
+ - lib/vmc/cli/command.rb
117
+ - lib/vmc/cli/dots.rb
118
+ - lib/vmc/cli/service.rb
119
+ - lib/vmc/cli/user.rb
120
+ - lib/vmc/cli.rb
121
+ - lib/vmc/constants.rb
122
+ - lib/vmc/detect.rb
123
+ - lib/vmc/errors.rb
124
+ - lib/vmc/plugin.rb
125
+ - lib/vmc/version.rb
126
+ - lib/vmc.rb
375
127
  - bin/vmc
376
- homepage: http://vmware.com
128
+ homepage: http://cloudfoundry.com/
377
129
  licenses: []
378
130
 
379
131
  post_install_message:
@@ -403,10 +155,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
403
155
  version: 1.3.1
404
156
  requirements: []
405
157
 
406
- rubyforge_project:
158
+ rubyforge_project: vmc
407
159
  rubygems_version: 1.8.23
408
160
  signing_key:
409
161
  specification_version: 3
410
- summary: Client library and CLI that provides access to the VMware Cloud Application Platform.
162
+ summary: Friendly command-line interface for Cloud Foundry.
411
163
  test_files: []
412
164