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 +1 -1
- data/lib/manifests-vmc-plugin/version.rb +1 -1
- data/lib/manifests-vmc-plugin.rb +18 -12
- metadata +5 -5
data/Rakefile
CHANGED
data/lib/manifests-vmc-plugin.rb
CHANGED
@@ -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}
|
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
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
"
|
493
|
-
|
494
|
-
|
495
|
-
|
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:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
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-
|
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.
|
80
|
+
rubygems_version: 1.8.24
|
81
81
|
signing_key:
|
82
82
|
specification_version: 3
|
83
83
|
summary: Cloud Foundry automation via manifest documents.
|