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.
@@ -162,23 +162,15 @@ module CFManifests
162
162
  meta["services"] = {}
163
163
 
164
164
  services.each do |i|
165
- if v2?
166
- p = i.service_plan
167
- s = p.service
168
-
169
- meta["services"][i.name] = {
170
- "label" => s.label,
171
- "provider" => s.provider,
172
- "version" => s.version,
173
- "plan" => p.name
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
- if v2?
291
- plan = offering.service_plans.find { |p|
292
- p.name == (svc[:plan] || "D100")
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,
@@ -1,3 +1,3 @@
1
1
  module CFManifests
2
- VERSION = "0.7.0.rc1".freeze
2
+ VERSION = "0.7.0.rc2".freeze
3
3
  end
@@ -30,7 +30,6 @@ describe CFManifests do
30
30
 
31
31
  before do
32
32
  stub(cmd).target_base { target_base }
33
- stub(cmd).v2? { true }
34
33
 
35
34
  stub(cmd).manifest { manifest }
36
35
  stub(cmd).manifest_file { manifest_file }
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: 639214861
4
+ hash: 1686705
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 0
10
10
  - rc
11
- - 1
12
- version: 0.7.0.rc1
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-18 00:00:00 Z
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: 639214909
30
+ hash: 1686689
31
31
  segments:
32
32
  - 0
33
- - 5
34
- - 3
33
+ - 6
34
+ - 0
35
35
  - rc
36
- - 5
37
- version: 0.5.3.rc5
36
+ - 2
37
+ version: 0.6.0.rc2
38
38
  - - <
39
39
  - !ruby/object:Gem::Version
40
- hash: 7
40
+ hash: 5
41
41
  segments:
42
42
  - 0
43
- - 6
44
- version: "0.6"
43
+ - 7
44
+ version: "0.7"
45
45
  type: :runtime
46
46
  version_requirements: *id001
47
47
  - !ruby/object:Gem::Dependency