prof 0.33.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prof/cloud_foundry.rb +2 -4
- data/lib/prof/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4a1b793b56ae4352de44896acf4210260b8d5ee
|
4
|
+
data.tar.gz: 3019c6143a77cedf430e1b2bfee18eb89eea390b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b971f6bbb520e519c1ad6d36aca18a261e5b3990dc55cdff09ffda5cbfe094545e6afeaac0e9dc228f6288bafa84a0c1a2318f7460666f3262300ff5de2708d1
|
7
|
+
data.tar.gz: 90322a1872d3855e8025be5dafa42cc6834c32fc66c266ef6ea6684946f9a5750f8a42dbb8822653872f6075b92f478d3b0c571e2ca60b15e0b3a942607a5a6f
|
data/lib/prof/cloud_foundry.rb
CHANGED
@@ -149,16 +149,14 @@ module Prof
|
|
149
149
|
service_instance.name
|
150
150
|
end
|
151
151
|
|
152
|
-
def provision_service(service, options = {}, &_block)
|
153
|
-
service_instance = ServiceInstance.new
|
154
|
-
|
152
|
+
def provision_service(service, options = {}, service_instance = ServiceInstance.new, &_block)
|
155
153
|
hula_cloud_foundry.create_service_instance(service.name, service_instance.name, service.plan)
|
156
154
|
wait_for_service_state(service_instance, "create succeeded", "create failed")
|
157
155
|
|
158
156
|
yield service_instance if block_given?
|
159
157
|
|
160
158
|
ensure
|
161
|
-
|
159
|
+
delete_service_instance_and_unbind(service_instance, options)
|
162
160
|
end
|
163
161
|
|
164
162
|
def delete_service_instance_and_unbind(service_instance, options = {})
|
data/lib/prof/version.rb
CHANGED