manifests-vmc-plugin 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ task :build do
16
16
  end
17
17
 
18
18
  task :install => :build do
19
- sh "gem install --local manifests-vmc-plugin-#{VMCManifests::VERSION}"
19
+ sh "gem install --local manifests-vmc-plugin-#{VMCManifests::VERSION}.gem"
20
20
  end
21
21
 
22
22
  task :uninstall do
@@ -1,3 +1,3 @@
1
1
  module VMCManifests
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -393,9 +393,7 @@ module VMCManifests
393
393
  end
394
394
  when "framework", "runtime"
395
395
  old = app.send(k)
396
- new = client.send("#{k}s").find do |x|
397
- x.name == v
398
- end
396
+ new = client.send(:"#{k}_by_name", v)
399
397
 
400
398
  if old != new
401
399
  diff[k] = [old.name, new.name]
@@ -485,15 +483,23 @@ module VMCManifests
485
483
  meta["services"] = {}
486
484
 
487
485
  service_instances.each do |i|
488
- p = i.service_plan
489
- s = p.service
490
-
491
- meta["services"][i.name] = {
492
- "label" => s.label,
493
- "provider" => s.provider,
494
- "version" => s.version,
495
- "plan" => p.name
496
- }
486
+ if v2?
487
+ p = i.service_plan
488
+ s = p.service
489
+
490
+ meta["services"][i.name] = {
491
+ "label" => s.label,
492
+ "provider" => s.provider,
493
+ "version" => s.version,
494
+ "plan" => p.name
495
+ }
496
+ else
497
+ meta["services"][i.name] = {
498
+ "vendor" => i.vendor,
499
+ "version" => i.version,
500
+ "tier" => i.tier
501
+ }
502
+ end
497
503
  end
498
504
  end
499
505
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manifests-vmc-plugin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-07-25 00:00:00 Z
18
+ date: 2012-08-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: cfoundry
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements: []
78
78
 
79
79
  rubyforge_project: manifests-vmc-plugin
80
- rubygems_version: 1.8.23
80
+ rubygems_version: 1.8.24
81
81
  signing_key:
82
82
  specification_version: 3
83
83
  summary: Cloud Foundry automation via manifest documents.