manifests-cf-plugin 0.7.0.rc1 → 0.7.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/manifests-cf-plugin.rb +14 -24
- data/lib/manifests-cf-plugin/version.rb +1 -1
- data/spec/manifests-cf-plugin_spec.rb +0 -1
- metadata +12 -12
data/lib/manifests-cf-plugin.rb
CHANGED
@@ -162,23 +162,15 @@ module CFManifests
|
|
162
162
|
meta["services"] = {}
|
163
163
|
|
164
164
|
services.each do |i|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
}
|
175
|
-
else
|
176
|
-
meta["services"][i.name] = {
|
177
|
-
"vendor" => i.vendor,
|
178
|
-
"version" => i.version,
|
179
|
-
"tier" => i.tier
|
180
|
-
}
|
181
|
-
end
|
165
|
+
p = i.service_plan
|
166
|
+
s = p.service
|
167
|
+
|
168
|
+
meta["services"][i.name] = {
|
169
|
+
"label" => s.label,
|
170
|
+
"provider" => s.provider,
|
171
|
+
"version" => s.version,
|
172
|
+
"plan" => p.name
|
173
|
+
}
|
182
174
|
end
|
183
175
|
end
|
184
176
|
|
@@ -287,14 +279,12 @@ module CFManifests
|
|
287
279
|
|
288
280
|
fail "Unknown service offering: #{svc.inspect}." unless offering
|
289
281
|
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
}
|
294
|
-
|
295
|
-
fail "Unknown service plan: #{svc[:plan]}." unless plan
|
296
|
-
end
|
282
|
+
plan = offering.service_plans.find { |p|
|
283
|
+
p.name == (svc[:plan] || "D100")
|
284
|
+
}
|
297
285
|
|
286
|
+
fail "Unknown service plan: #{svc[:plan]}." unless plan
|
287
|
+
|
298
288
|
invoke :create_service,
|
299
289
|
:name => name,
|
300
290
|
:offering => offering,
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manifests-cf-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1686705
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
9
|
- 0
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version: 0.7.0.
|
11
|
+
- 2
|
12
|
+
version: 0.7.0.rc2
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Alex Suraci
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2013-03-
|
20
|
+
date: 2013-03-19 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: cfoundry
|
@@ -27,21 +27,21 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: 1686689
|
31
31
|
segments:
|
32
32
|
- 0
|
33
|
-
-
|
34
|
-
-
|
33
|
+
- 6
|
34
|
+
- 0
|
35
35
|
- rc
|
36
|
-
-
|
37
|
-
version: 0.
|
36
|
+
- 2
|
37
|
+
version: 0.6.0.rc2
|
38
38
|
- - <
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
hash:
|
40
|
+
hash: 5
|
41
41
|
segments:
|
42
42
|
- 0
|
43
|
-
-
|
44
|
-
version: "0.
|
43
|
+
- 7
|
44
|
+
version: "0.7"
|
45
45
|
type: :runtime
|
46
46
|
version_requirements: *id001
|
47
47
|
- !ruby/object:Gem::Dependency
|