vmc 0.4.0.beta.8 → 0.4.0.beta.9
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.
- data/{vmc-ng/LICENSE → LICENSE} +0 -0
- data/{vmc-ng/Rakefile → Rakefile} +0 -0
- data/bin/vmc +10 -11
- data/{vmc-ng/lib → lib}/vmc/cli/app.rb +106 -58
- data/{vmc-ng/lib → lib}/vmc/cli/better_help.rb +0 -0
- data/{vmc-ng/lib → lib}/vmc/cli/command.rb +14 -0
- data/{vmc-ng/lib → lib}/vmc/cli/dots.rb +0 -0
- data/{vmc-ng/lib → lib}/vmc/cli/service.rb +0 -0
- data/{vmc-ng/lib → lib}/vmc/cli/user.rb +0 -0
- data/{vmc-ng/lib → lib}/vmc/cli.rb +88 -2
- data/{vmc-ng/lib → lib}/vmc/constants.rb +0 -0
- data/{vmc-ng/lib → lib}/vmc/detect.rb +0 -0
- data/{vmc-ng/lib → lib}/vmc/errors.rb +0 -0
- data/{vmc-ng/lib → lib}/vmc/plugin.rb +0 -0
- data/lib/vmc/version.rb +3 -0
- data/{vmc-ng/lib → lib}/vmc.rb +0 -0
- metadata +41 -273
- data/vmc/LICENSE +0 -24
- data/vmc/README.md +0 -102
- data/vmc/Rakefile +0 -101
- data/vmc/bin/vmc +0 -6
- data/vmc/caldecott_helper/Gemfile +0 -10
- data/vmc/caldecott_helper/Gemfile.lock +0 -48
- data/vmc/caldecott_helper/server.rb +0 -43
- data/vmc/config/clients.yml +0 -17
- data/vmc/config/micro/offline.conf +0 -2
- data/vmc/config/micro/paths.yml +0 -22
- data/vmc/config/micro/refresh_ip.rb +0 -20
- data/vmc/lib/cli/commands/admin.rb +0 -80
- data/vmc/lib/cli/commands/apps.rb +0 -1126
- data/vmc/lib/cli/commands/base.rb +0 -227
- data/vmc/lib/cli/commands/manifest.rb +0 -56
- data/vmc/lib/cli/commands/micro.rb +0 -115
- data/vmc/lib/cli/commands/misc.rb +0 -129
- data/vmc/lib/cli/commands/services.rb +0 -180
- data/vmc/lib/cli/commands/user.rb +0 -65
- data/vmc/lib/cli/config.rb +0 -173
- data/vmc/lib/cli/console_helper.rb +0 -160
- data/vmc/lib/cli/core_ext.rb +0 -122
- data/vmc/lib/cli/errors.rb +0 -19
- data/vmc/lib/cli/frameworks.rb +0 -265
- data/vmc/lib/cli/manifest_helper.rb +0 -302
- data/vmc/lib/cli/runner.rb +0 -531
- data/vmc/lib/cli/services_helper.rb +0 -84
- data/vmc/lib/cli/tunnel_helper.rb +0 -332
- data/vmc/lib/cli/usage.rb +0 -115
- data/vmc/lib/cli/version.rb +0 -7
- data/vmc/lib/cli/zip_util.rb +0 -77
- data/vmc/lib/cli.rb +0 -47
- data/vmc/lib/vmc/client.rb +0 -471
- data/vmc/lib/vmc/const.rb +0 -22
- data/vmc/lib/vmc/micro/switcher/base.rb +0 -97
- data/vmc/lib/vmc/micro/switcher/darwin.rb +0 -19
- data/vmc/lib/vmc/micro/switcher/dummy.rb +0 -15
- data/vmc/lib/vmc/micro/switcher/linux.rb +0 -16
- data/vmc/lib/vmc/micro/switcher/windows.rb +0 -31
- data/vmc/lib/vmc/micro/vmrun.rb +0 -158
- data/vmc/lib/vmc/micro.rb +0 -56
- data/vmc/lib/vmc.rb +0 -3
- data/vmc-ng/bin/vmc +0 -14
- data/vmc-ng/lib/vmc/version.rb +0 -3
metadata
CHANGED
@@ -1,218 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196465
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.4.0.beta.
|
11
|
+
- 9
|
12
|
+
version: 0.4.0.beta.9
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
|
-
-
|
15
|
+
- Alex Suraci
|
16
16
|
autorequire:
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-06-
|
20
|
+
date: 2012-06-14 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
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: *
|
37
|
+
version_requirements: *id001
|
228
38
|
- !ruby/object:Gem::Dependency
|
229
39
|
name: interact
|
230
40
|
prerelease: false
|
231
|
-
requirement: &
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
232
42
|
none: false
|
233
43
|
requirements:
|
234
44
|
- - ~>
|
@@ -240,27 +50,27 @@ dependencies:
|
|
240
50
|
- 1
|
241
51
|
version: 0.4.1
|
242
52
|
type: :runtime
|
243
|
-
version_requirements: *
|
53
|
+
version_requirements: *id002
|
244
54
|
- !ruby/object:Gem::Dependency
|
245
55
|
name: cfoundry
|
246
56
|
prerelease: false
|
247
|
-
requirement: &
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
248
58
|
none: false
|
249
59
|
requirements:
|
250
60
|
- - ~>
|
251
61
|
- !ruby/object:Gem::Version
|
252
|
-
hash:
|
62
|
+
hash: 19
|
253
63
|
segments:
|
254
64
|
- 0
|
255
65
|
- 2
|
256
|
-
-
|
257
|
-
version: 0.2.
|
66
|
+
- 2
|
67
|
+
version: 0.2.2
|
258
68
|
type: :runtime
|
259
|
-
version_requirements: *
|
69
|
+
version_requirements: *id003
|
260
70
|
- !ruby/object:Gem::Dependency
|
261
71
|
name: thor
|
262
72
|
prerelease: false
|
263
|
-
requirement: &
|
73
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
264
74
|
none: false
|
265
75
|
requirements:
|
266
76
|
- - ~>
|
@@ -272,25 +82,26 @@ dependencies:
|
|
272
82
|
- 6
|
273
83
|
version: 0.14.6
|
274
84
|
type: :runtime
|
275
|
-
version_requirements: *
|
85
|
+
version_requirements: *id004
|
276
86
|
- !ruby/object:Gem::Dependency
|
277
87
|
name: manifests-vmc-plugin
|
278
88
|
prerelease: false
|
279
|
-
requirement: &
|
89
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
280
90
|
none: false
|
281
91
|
requirements:
|
282
92
|
- - ~>
|
283
93
|
- !ruby/object:Gem::Version
|
284
|
-
hash:
|
94
|
+
hash: 19
|
285
95
|
segments:
|
286
96
|
- 0
|
287
97
|
- 2
|
288
|
-
-
|
289
|
-
version: 0.2.
|
98
|
+
- 2
|
99
|
+
version: 0.2.2
|
290
100
|
type: :runtime
|
291
|
-
version_requirements: *
|
101
|
+
version_requirements: *id005
|
292
102
|
description:
|
293
|
-
email:
|
103
|
+
email:
|
104
|
+
- asuraci@vmware.com
|
294
105
|
executables:
|
295
106
|
- vmc
|
296
107
|
extensions: []
|
@@ -298,73 +109,30 @@ extensions: []
|
|
298
109
|
extra_rdoc_files: []
|
299
110
|
|
300
111
|
files:
|
301
|
-
-
|
302
|
-
-
|
303
|
-
- vmc/
|
304
|
-
- vmc/
|
305
|
-
- vmc/
|
306
|
-
- vmc/
|
307
|
-
- vmc/
|
308
|
-
- vmc/
|
309
|
-
- vmc/
|
310
|
-
-
|
311
|
-
-
|
312
|
-
-
|
313
|
-
-
|
314
|
-
-
|
315
|
-
-
|
316
|
-
- vmc/lib/cli/config.rb
|
317
|
-
- vmc/lib/cli/console_helper.rb
|
318
|
-
- vmc/lib/cli/core_ext.rb
|
319
|
-
- vmc/lib/cli/errors.rb
|
320
|
-
- vmc/lib/cli/frameworks.rb
|
321
|
-
- vmc/lib/cli/manifest_helper.rb
|
322
|
-
- vmc/lib/cli/runner.rb
|
323
|
-
- vmc/lib/cli/services_helper.rb
|
324
|
-
- vmc/lib/cli/tunnel_helper.rb
|
325
|
-
- vmc/lib/cli/usage.rb
|
326
|
-
- vmc/lib/cli/version.rb
|
327
|
-
- vmc/lib/cli/zip_util.rb
|
328
|
-
- vmc/lib/cli.rb
|
329
|
-
- vmc/lib/vmc/client.rb
|
330
|
-
- vmc/lib/vmc/const.rb
|
331
|
-
- vmc/lib/vmc/micro/switcher/base.rb
|
332
|
-
- vmc/lib/vmc/micro/switcher/darwin.rb
|
333
|
-
- vmc/lib/vmc/micro/switcher/dummy.rb
|
334
|
-
- vmc/lib/vmc/micro/switcher/linux.rb
|
335
|
-
- vmc/lib/vmc/micro/switcher/windows.rb
|
336
|
-
- vmc/lib/vmc/micro/vmrun.rb
|
337
|
-
- vmc/lib/vmc/micro.rb
|
338
|
-
- vmc/lib/vmc.rb
|
339
|
-
- vmc/caldecott_helper/Gemfile
|
340
|
-
- vmc/caldecott_helper/Gemfile.lock
|
341
|
-
- vmc/caldecott_helper/server.rb
|
342
|
-
- vmc/bin/vmc
|
343
|
-
- vmc-ng/LICENSE
|
344
|
-
- vmc-ng/Rakefile
|
345
|
-
- vmc-ng/lib/vmc/cli/app.rb
|
346
|
-
- vmc-ng/lib/vmc/cli/better_help.rb
|
347
|
-
- vmc-ng/lib/vmc/cli/command.rb
|
348
|
-
- vmc-ng/lib/vmc/cli/dots.rb
|
349
|
-
- vmc-ng/lib/vmc/cli/service.rb
|
350
|
-
- vmc-ng/lib/vmc/cli/user.rb
|
351
|
-
- vmc-ng/lib/vmc/cli.rb
|
352
|
-
- vmc-ng/lib/vmc/constants.rb
|
353
|
-
- vmc-ng/lib/vmc/detect.rb
|
354
|
-
- vmc-ng/lib/vmc/errors.rb
|
355
|
-
- vmc-ng/lib/vmc/plugin.rb
|
356
|
-
- vmc-ng/lib/vmc/version.rb
|
357
|
-
- vmc-ng/lib/vmc.rb
|
358
|
-
- 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
|
359
127
|
- bin/vmc
|
360
|
-
homepage: http://
|
128
|
+
homepage: http://cloudfoundry.com/
|
361
129
|
licenses: []
|
362
130
|
|
363
131
|
post_install_message:
|
364
132
|
rdoc_options: []
|
365
133
|
|
366
134
|
require_paths:
|
367
|
-
-
|
135
|
+
- lib
|
368
136
|
required_ruby_version: !ruby/object:Gem::Requirement
|
369
137
|
none: false
|
370
138
|
requirements:
|
@@ -387,10 +155,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
387
155
|
version: 1.3.1
|
388
156
|
requirements: []
|
389
157
|
|
390
|
-
rubyforge_project:
|
158
|
+
rubyforge_project: vmc
|
391
159
|
rubygems_version: 1.8.23
|
392
160
|
signing_key:
|
393
161
|
specification_version: 3
|
394
|
-
summary:
|
162
|
+
summary: Friendly command-line interface for Cloud Foundry.
|
395
163
|
test_files: []
|
396
164
|
|
data/vmc/LICENSE
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
Copyright (c) 2010-2011 VMware Inc, All Rights Reserved
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
-
of this software and associated documentation files (the "Software"), to deal
|
5
|
-
in the Software without restriction, including without limitation the rights
|
6
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
-
copies of the Software, and to permit persons to whom the Software is
|
8
|
-
furnished to do so, subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in
|
11
|
-
all copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
-
THE SOFTWARE.
|
20
|
-
|
21
|
-
This software downloads additional open source software components upon install
|
22
|
-
that are distributed under separate terms and conditions. Please see the license
|
23
|
-
information provided in the individual software components for more information.
|
24
|
-
|
data/vmc/README.md
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
# VMC
|
2
|
-
|
3
|
-
The VMware Cloud CLI. This is the command line interface to VMware's Application Platform
|
4
|
-
|
5
|
-
_Copyright 2010-2011, VMware, Inc. Licensed under the
|
6
|
-
MIT license, please see the LICENSE file. All rights reserved._
|
7
|
-
|
8
|
-
Usage: vmc [options] command [<args>] [command_options]
|
9
|
-
Try 'vmc help [command]' or 'vmc help options' for more information.
|
10
|
-
|
11
|
-
Currently available vmc commands are:
|
12
|
-
|
13
|
-
Getting Started
|
14
|
-
target [url] Reports current target or sets a new target
|
15
|
-
login [email] [--email, --passwd] Login
|
16
|
-
info System and account information
|
17
|
-
|
18
|
-
Applications
|
19
|
-
apps List deployed applications
|
20
|
-
|
21
|
-
Application Creation
|
22
|
-
push [appname] Create, push, map, and start a new application
|
23
|
-
push [appname] --path Push application from specified path
|
24
|
-
push [appname] --url Set the url for the application
|
25
|
-
push [appname] --instances <N> Set the expected number <N> of instances
|
26
|
-
push [appname] --mem M Set the memory reservation for the application
|
27
|
-
push [appname] --no-start Do not auto-start the application
|
28
|
-
|
29
|
-
Application Operations
|
30
|
-
start <appname> Start the application
|
31
|
-
stop <appname> Stop the application
|
32
|
-
restart <appname> Restart the application
|
33
|
-
delete <appname> Delete the application
|
34
|
-
|
35
|
-
Application Updates
|
36
|
-
update <appname> [--path] Update the application bits
|
37
|
-
mem <appname> [memsize] Update the memory reservation for an application
|
38
|
-
map <appname> <url> Register the application to the url
|
39
|
-
unmap <appname> <url> Unregister the application from the url
|
40
|
-
instances <appname> <num|delta> Scale the application instances up or down
|
41
|
-
|
42
|
-
Application Information
|
43
|
-
crashes <appname> List recent application crashes
|
44
|
-
crashlogs <appname> Display log information for crashed applications
|
45
|
-
logs <appname> [--all] Display log information for the application
|
46
|
-
files <appname> [path] [--all] Display directory listing or file download for path
|
47
|
-
stats <appname> Display resource usage for the application
|
48
|
-
instances <appname> List application instances
|
49
|
-
|
50
|
-
Application Environment
|
51
|
-
env <appname> List application environment variables
|
52
|
-
env-add <appname> <variable[=]value> Add an environment variable to an application
|
53
|
-
env-del <appname> <variable> Delete an environment variable to an application
|
54
|
-
|
55
|
-
Services
|
56
|
-
services Lists of services available and provisioned
|
57
|
-
create-service <service> [--name,--bind] Create a provisioned service
|
58
|
-
create-service <service> <name> Create a provisioned service and assign it <name>
|
59
|
-
create-service <service> <name> <app> Create a provisioned service and assign it <name>, and bind to <app>
|
60
|
-
delete-service [servicename] Delete a provisioned service
|
61
|
-
bind-service <servicename> <appname> Bind a service to an application
|
62
|
-
unbind-service <servicename> <appname> Unbind service from the application
|
63
|
-
clone-services <src-app> <dest-app> Clone service bindings from <src-app> application to <dest-app>
|
64
|
-
tunnel <servicename> [--port] Create a local tunnel to a service
|
65
|
-
tunnel <servicename> <clientcmd> Create a local tunnel to a service and start a local client
|
66
|
-
|
67
|
-
Administration
|
68
|
-
user Display user account information
|
69
|
-
passwd Change the password for the current user
|
70
|
-
logout Logs current user out of the target system
|
71
|
-
add-user [--email, --passwd] Register a new user (requires admin privileges)
|
72
|
-
delete-user <user> Delete a user and all apps and services (requires admin privileges)
|
73
|
-
|
74
|
-
System
|
75
|
-
runtimes Display the supported runtimes of the target system
|
76
|
-
frameworks Display the recognized frameworks of the target system
|
77
|
-
|
78
|
-
Micro Cloud Foundry
|
79
|
-
micro status Display Micro Cloud Foundry VM status
|
80
|
-
mciro offline Configure Micro Cloud Foundry VM for offline mode
|
81
|
-
micro online Configure Micro Cloud Foundry VM for online mode
|
82
|
-
[--vmx file] Path to micro.vmx
|
83
|
-
[--vmrun executable] Path to vmrun executable
|
84
|
-
[--password cleartext] Cleartext password for guest VM vcap user
|
85
|
-
[--save] Save cleartext password in ~/.vmc_micro
|
86
|
-
|
87
|
-
Misc
|
88
|
-
aliases List aliases
|
89
|
-
alias <alias[=]command> Create an alias for a command
|
90
|
-
unalias <alias> Remove an alias
|
91
|
-
targets List known targets and associated authorization tokens
|
92
|
-
|
93
|
-
Help
|
94
|
-
help [command] Get general help or help on a specific command
|
95
|
-
help options Get help on available options
|
96
|
-
|
97
|
-
## Simple Story (for Ruby apps)
|
98
|
-
|
99
|
-
vmc target api.cloudfoundry.com
|
100
|
-
vmc login
|
101
|
-
bundle package
|
102
|
-
vmc push
|
data/vmc/Rakefile
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'spec/rake/spectask'
|
3
|
-
|
4
|
-
desc "Run specs"
|
5
|
-
task :spec => :build do
|
6
|
-
Spec::Rake::SpecTask.new('spec') do |t|
|
7
|
-
t.spec_opts = %w(-fs -c)
|
8
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
desc "Synonym for spec"
|
13
|
-
task :test => :spec
|
14
|
-
desc "Synonym for spec"
|
15
|
-
task :tests => :spec
|
16
|
-
task :default => :spec
|
17
|
-
|
18
|
-
def tests_path
|
19
|
-
if @tests_path == nil
|
20
|
-
@tests_path = File.join(Dir.pwd, "spec/assets/tests")
|
21
|
-
end
|
22
|
-
@tests_path
|
23
|
-
end
|
24
|
-
TESTS_PATH = tests_path
|
25
|
-
|
26
|
-
BUILD_ARTIFACT = File.join(Dir.pwd, "spec/assets/.build")
|
27
|
-
|
28
|
-
TESTS_TO_BUILD = ["#{TESTS_PATH}/java_web/java_tiny_app",
|
29
|
-
# "#{TESTS_PATH}/grails/guestbook",
|
30
|
-
"#{TESTS_PATH}/lift/hello_lift",
|
31
|
-
"#{TESTS_PATH}/spring/roo-guestbook",
|
32
|
-
"#{TESTS_PATH}/spring/spring-osgi-hello",
|
33
|
-
"#{TESTS_PATH}/standalone/java_app",
|
34
|
-
"#{TESTS_PATH}/standalone/python_app"
|
35
|
-
]
|
36
|
-
|
37
|
-
desc "Build the tests. If the git hash associated with the test assets has not changed, nothing is built. To force a build, invoke 'rake build[--force]'"
|
38
|
-
task :build, [:force] do |t, args|
|
39
|
-
sh('bundle install')
|
40
|
-
sh('git submodule update --init')
|
41
|
-
puts "\nBuilding tests"
|
42
|
-
if build_required? args.force
|
43
|
-
ENV['MAVEN_OPTS']="-XX:MaxPermSize=256M"
|
44
|
-
TESTS_TO_BUILD.each do |test|
|
45
|
-
puts "\tBuilding '#{test}'"
|
46
|
-
Dir.chdir test do
|
47
|
-
sh('mvn package -DskipTests') do |success, exit_code|
|
48
|
-
unless success
|
49
|
-
clear_build_artifact
|
50
|
-
do_mvn_clean('-q')
|
51
|
-
fail "\tFailed to build #{test} - aborting build"
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
puts "\tCompleted building '#{test}'"
|
56
|
-
end
|
57
|
-
save_git_hash
|
58
|
-
else
|
59
|
-
puts "Built artifacts in sync with test assets - no build required"
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
desc "Clean the build artifacts"
|
64
|
-
task :clean do
|
65
|
-
puts "\nCleaning tests"
|
66
|
-
clear_build_artifact
|
67
|
-
TESTS_TO_BUILD.each do |test|
|
68
|
-
puts "\tCleaning '#{test}'"
|
69
|
-
Dir.chdir test do
|
70
|
-
do_mvn_clean
|
71
|
-
end
|
72
|
-
puts "\tCompleted cleaning '#{test}'"
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
def build_required? (force_build=nil)
|
77
|
-
if File.exists?(BUILD_ARTIFACT) == false or (force_build and force_build == "--force")
|
78
|
-
return true
|
79
|
-
end
|
80
|
-
Dir.chdir(tests_path) do
|
81
|
-
saved_git_hash = IO.readlines(BUILD_ARTIFACT)[0].split[0]
|
82
|
-
git_hash = `git rev-parse --short=8 --verify HEAD`
|
83
|
-
saved_git_hash.to_s.strip != git_hash.to_s.strip
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
def save_git_hash
|
88
|
-
Dir.chdir(tests_path) do
|
89
|
-
git_hash = `git rev-parse --short=8 --verify HEAD`
|
90
|
-
File.open(BUILD_ARTIFACT, 'w') {|f| f.puts("#{git_hash}")}
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
def clear_build_artifact
|
95
|
-
puts "\tClearing build artifact #{BUILD_ARTIFACT}"
|
96
|
-
File.unlink BUILD_ARTIFACT if File.exists? BUILD_ARTIFACT
|
97
|
-
end
|
98
|
-
|
99
|
-
def do_mvn_clean options=nil
|
100
|
-
sh("mvn clean #{options}")
|
101
|
-
end
|
data/vmc/bin/vmc
DELETED