vmc 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.4".freeze
2
+ VERSION = "0.4.5".freeze
3
3
  end
@@ -0,0 +1,17 @@
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
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 4
10
- version: 0.4.4
9
+ - 5
10
+ version: 0.4.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-12-06 00:00:00 Z
18
+ date: 2012-12-07 00:00:00 -08:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: json_pure
@@ -57,12 +58,12 @@ dependencies:
57
58
  requirements:
58
59
  - - ~>
59
60
  - !ruby/object:Gem::Version
60
- hash: 31
61
+ hash: 29
61
62
  segments:
62
63
  - 0
63
64
  - 4
64
- - 8
65
- version: 0.4.8
65
+ - 9
66
+ version: 0.4.9
66
67
  type: :runtime
67
68
  version_requirements: *id003
68
69
  - !ruby/object:Gem::Dependency
@@ -254,102 +255,103 @@ extra_rdoc_files: []
254
255
  files:
255
256
  - LICENSE
256
257
  - Rakefile
257
- - lib/vmc/cli/app/app.rb
258
- - lib/vmc/cli/app/apps.rb
259
- - lib/vmc/cli/app/base.rb
260
- - lib/vmc/cli/app/crashes.rb
261
- - lib/vmc/cli/app/delete.rb
262
- - lib/vmc/cli/app/deprecated.rb
263
- - lib/vmc/cli/app/env.rb
264
- - lib/vmc/cli/app/files.rb
258
+ - lib/vmc/version.rb
259
+ - lib/vmc/detect.rb
260
+ - lib/vmc/errors.rb
261
+ - lib/vmc/spacing.rb
262
+ - lib/vmc/spec_helper.rb
263
+ - lib/vmc/plugin.rb
264
+ - lib/vmc/constants.rb
265
+ - lib/vmc/cli.rb
266
+ - lib/vmc/cli/organization/rename.rb
267
+ - lib/vmc/cli/organization/delete_org.rb
268
+ - lib/vmc/cli/organization/orgs.rb
269
+ - lib/vmc/cli/organization/base.rb
270
+ - lib/vmc/cli/organization/org.rb
271
+ - lib/vmc/cli/organization/create_org.rb
272
+ - lib/vmc/cli/start/targets.rb
273
+ - lib/vmc/cli/start/register.rb
274
+ - lib/vmc/cli/start/colors.rb
275
+ - lib/vmc/cli/start/target.rb
276
+ - lib/vmc/cli/start/logout.rb
277
+ - lib/vmc/cli/start/base.rb
278
+ - lib/vmc/cli/start/info.rb
279
+ - lib/vmc/cli/start/login.rb
280
+ - lib/vmc/cli/user.rb
281
+ - lib/vmc/cli/route/create_route.rb
282
+ - lib/vmc/cli/route/routes.rb
283
+ - lib/vmc/cli/route/base.rb
284
+ - lib/vmc/cli/route/delete_route.rb
285
+ - lib/vmc/cli/app/scale.rb
265
286
  - lib/vmc/cli/app/health.rb
266
- - lib/vmc/cli/app/instances.rb
267
- - lib/vmc/cli/app/logs.rb
287
+ - lib/vmc/cli/app/files.rb
268
288
  - lib/vmc/cli/app/push/create.rb
269
- - lib/vmc/cli/app/push/interaction.rb
270
289
  - lib/vmc/cli/app/push/sync.rb
271
- - lib/vmc/cli/app/push.rb
272
290
  - lib/vmc/cli/app/rename.rb
273
- - lib/vmc/cli/app/restart.rb
274
291
  - lib/vmc/cli/app/routes.rb
275
- - lib/vmc/cli/app/scale.rb
292
+ - lib/vmc/cli/app/deprecated.rb
293
+ - lib/vmc/cli/app/logs.rb
294
+ - lib/vmc/cli/app/instances.rb
276
295
  - lib/vmc/cli/app/start.rb
277
- - lib/vmc/cli/app/stats.rb
296
+ - lib/vmc/cli/app/app.rb
278
297
  - lib/vmc/cli/app/stop.rb
279
- - lib/vmc/cli/domain/add_domain.rb
280
- - lib/vmc/cli/domain/base.rb
298
+ - lib/vmc/cli/app/env.rb
299
+ - lib/vmc/cli/app/base.rb
300
+ - lib/vmc/cli/app/stats.rb
301
+ - lib/vmc/cli/app/apps.rb
302
+ - lib/vmc/cli/app/restart.rb
303
+ - lib/vmc/cli/app/delete.rb
304
+ - lib/vmc/cli/app/push.rb
305
+ - lib/vmc/cli/app/crashes.rb
306
+ - lib/vmc/cli/interactive.rb
281
307
  - lib/vmc/cli/domain/create_domain.rb
282
- - lib/vmc/cli/domain/delete_domain.rb
283
308
  - lib/vmc/cli/domain/domains.rb
309
+ - lib/vmc/cli/domain/delete_domain.rb
310
+ - lib/vmc/cli/domain/base.rb
284
311
  - lib/vmc/cli/domain/remove_domain.rb
285
- - lib/vmc/cli/help.rb
286
- - lib/vmc/cli/interactive.rb
287
- - lib/vmc/cli/organization/base.rb
288
- - lib/vmc/cli/organization/create_org.rb
289
- - lib/vmc/cli/organization/delete_org.rb
290
- - lib/vmc/cli/organization/org.rb
291
- - lib/vmc/cli/organization/orgs.rb
292
- - lib/vmc/cli/organization/rename.rb
293
- - lib/vmc/cli/route/base.rb
294
- - lib/vmc/cli/route/create_route.rb
295
- - lib/vmc/cli/route/delete_route.rb
296
- - lib/vmc/cli/route/routes.rb
297
- - lib/vmc/cli/service/base.rb
298
- - lib/vmc/cli/service/binding.rb
299
- - lib/vmc/cli/service/create.rb
300
- - lib/vmc/cli/service/delete.rb
301
- - lib/vmc/cli/service/rename.rb
302
- - lib/vmc/cli/service/service.rb
303
- - lib/vmc/cli/service/services.rb
304
- - lib/vmc/cli/space/base.rb
312
+ - lib/vmc/cli/domain/add_domain.rb
313
+ - lib/vmc/cli/space/spaces.rb
305
314
  - lib/vmc/cli/space/create.rb
306
- - lib/vmc/cli/space/delete.rb
307
315
  - lib/vmc/cli/space/rename.rb
308
316
  - lib/vmc/cli/space/space.rb
309
- - lib/vmc/cli/space/spaces.rb
310
317
  - lib/vmc/cli/space/take.rb
311
- - lib/vmc/cli/start/base.rb
312
- - lib/vmc/cli/start/colors.rb
313
- - lib/vmc/cli/start/info.rb
314
- - lib/vmc/cli/start/login.rb
315
- - lib/vmc/cli/start/logout.rb
316
- - lib/vmc/cli/start/register.rb
317
- - lib/vmc/cli/start/target.rb
318
- - lib/vmc/cli/start/targets.rb
319
- - lib/vmc/cli/user.rb
320
- - lib/vmc/cli.rb
321
- - lib/vmc/constants.rb
322
- - lib/vmc/detect.rb
323
- - lib/vmc/errors.rb
324
- - lib/vmc/plugin.rb
325
- - lib/vmc/spacing.rb
326
- - lib/vmc/spec_helper.rb
327
- - lib/vmc/version.rb
318
+ - lib/vmc/cli/space/base.rb
319
+ - lib/vmc/cli/space/delete.rb
320
+ - lib/vmc/cli/service/service.rb
321
+ - lib/vmc/cli/service/binding.rb
322
+ - lib/vmc/cli/service/create.rb
323
+ - lib/vmc/cli/service/rename.rb
324
+ - lib/vmc/cli/service/services.rb
325
+ - lib/vmc/cli/service/base.rb
326
+ - lib/vmc/cli/service/delete.rb
327
+ - lib/vmc/cli/help.rb
328
328
  - lib/vmc.rb
329
- - spec/factories/app_factory.rb
330
- - spec/factories/client_factory.rb
331
- - spec/factories/domain_factory.rb
332
- - spec/factories/factory.rb
333
- - spec/factories/framework_factory.rb
334
- - spec/factories/organization_factory.rb
335
- - spec/factories/route_factory.rb
336
- - spec/factories/runtime_factory.rb
329
+ - spec/support/interact_helpers.rb
330
+ - spec/factories/service_instance_factory.rb
337
331
  - spec/factories/service_binding_factory.rb
338
332
  - spec/factories/service_factory.rb
339
- - spec/factories/service_instance_factory.rb
340
- - spec/factories/service_plan_factory.rb
333
+ - spec/factories/route_factory.rb
334
+ - spec/factories/factory.rb
335
+ - spec/factories/runtime_factory.rb
341
336
  - spec/factories/space_factory.rb
337
+ - spec/factories/organization_factory.rb
338
+ - spec/factories/framework_factory.rb
339
+ - spec/factories/domain_factory.rb
340
+ - spec/factories/client_factory.rb
341
+ - spec/factories/app_factory.rb
342
+ - spec/factories/service_plan_factory.rb
342
343
  - spec/spec_helper.rb
343
- - spec/support/interact_helpers.rb
344
- - spec/vmc/cli/app/push/create_spec.rb
345
- - spec/vmc/cli/app/push_spec.rb
346
- - spec/vmc/cli/app/rename_spec.rb
344
+ - spec/vmc/detect_spec.rb
347
345
  - spec/vmc/cli/organization/rename_spec.rb
348
346
  - spec/vmc/cli/route/delete_route_spec.rb
349
- - spec/vmc/cli/service/rename_spec.rb
347
+ - spec/vmc/cli/app/push_spec.rb
348
+ - spec/vmc/cli/app/push/create_spec.rb
349
+ - spec/vmc/cli/app/rename_spec.rb
350
350
  - spec/vmc/cli/space/rename_spec.rb
351
- - spec/vmc/detect_spec.rb
351
+ - spec/vmc/cli/service/rename_spec.rb
352
+ - spec/assets/hello-sinatra/Gemfile.lock
352
353
  - bin/vmc
354
+ has_rdoc: true
353
355
  homepage: http://cloudfoundry.com/
354
356
  licenses: []
355
357
 
@@ -379,31 +381,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
379
381
  requirements: []
380
382
 
381
383
  rubyforge_project: vmc
382
- rubygems_version: 1.8.24
384
+ rubygems_version: 1.6.2
383
385
  signing_key:
384
386
  specification_version: 3
385
387
  summary: Friendly command-line interface for Cloud Foundry.
386
388
  test_files:
387
- - spec/factories/app_factory.rb
388
- - spec/factories/client_factory.rb
389
- - spec/factories/domain_factory.rb
390
- - spec/factories/factory.rb
391
- - spec/factories/framework_factory.rb
392
- - spec/factories/organization_factory.rb
393
- - spec/factories/route_factory.rb
394
- - spec/factories/runtime_factory.rb
389
+ - spec/support/interact_helpers.rb
390
+ - spec/factories/service_instance_factory.rb
395
391
  - spec/factories/service_binding_factory.rb
396
392
  - spec/factories/service_factory.rb
397
- - spec/factories/service_instance_factory.rb
398
- - spec/factories/service_plan_factory.rb
393
+ - spec/factories/route_factory.rb
394
+ - spec/factories/factory.rb
395
+ - spec/factories/runtime_factory.rb
399
396
  - spec/factories/space_factory.rb
397
+ - spec/factories/organization_factory.rb
398
+ - spec/factories/framework_factory.rb
399
+ - spec/factories/domain_factory.rb
400
+ - spec/factories/client_factory.rb
401
+ - spec/factories/app_factory.rb
402
+ - spec/factories/service_plan_factory.rb
400
403
  - spec/spec_helper.rb
401
- - spec/support/interact_helpers.rb
402
- - spec/vmc/cli/app/push/create_spec.rb
403
- - spec/vmc/cli/app/push_spec.rb
404
- - spec/vmc/cli/app/rename_spec.rb
404
+ - spec/vmc/detect_spec.rb
405
405
  - spec/vmc/cli/organization/rename_spec.rb
406
406
  - spec/vmc/cli/route/delete_route_spec.rb
407
- - spec/vmc/cli/service/rename_spec.rb
407
+ - spec/vmc/cli/app/push_spec.rb
408
+ - spec/vmc/cli/app/push/create_spec.rb
409
+ - spec/vmc/cli/app/rename_spec.rb
408
410
  - spec/vmc/cli/space/rename_spec.rb
409
- - spec/vmc/detect_spec.rb
411
+ - spec/vmc/cli/service/rename_spec.rb
412
+ - spec/assets/hello-sinatra/Gemfile.lock
@@ -1,64 +0,0 @@
1
- require "vmc/detect"
2
- require "vmc/cli/app/base"
3
- require "vmc/cli/app/push/sync"
4
- require "vmc/cli/app/push/create"
5
-
6
- module VMC::App
7
- class Push < Base
8
- module Interactions
9
- def name
10
- ask("Name")
11
- end
12
-
13
- def url(name)
14
- choices = url_choices(name)
15
-
16
- options = {
17
- :choices => choices + ["none"],
18
- :allow_other => true
19
- }
20
-
21
- options[:default] = choices.first if choices.size == 1
22
-
23
- url = ask "URL", options
24
-
25
- unless url == "none"
26
- url
27
- end
28
- end
29
-
30
- def memory(limit)
31
- ask("Memory Limit",
32
- :choices => memory_choices,
33
- :allow_other => true,
34
- :default => default || "64M")
35
- end
36
-
37
- def instances
38
- ask("Instances", :default => 1)
39
- end
40
-
41
- def framework(choices, default, other)
42
- ask_with_other("Framework", client.frameworks, choices, default, other)
43
- end
44
-
45
- def runtime(choices, default, other)
46
- ask_with_other("Runtime", client.runtimes, choices, default, other)
47
- end
48
-
49
- def command
50
- ask("Startup command")
51
- end
52
-
53
- def create_services
54
- ask "Create services for application?", :default => false
55
- end
56
-
57
- def bind_services
58
- return if all_instances.empty?
59
-
60
- ask "Bind other services to application?", :default => false
61
- end
62
- end
63
- end
64
- end