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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dade8eaa281e844ba97b6a7585a538ce0d6979ca
4
- data.tar.gz: e49902370f17f71a712bd66a7ac73a5490f0963b
3
+ metadata.gz: c4a1b793b56ae4352de44896acf4210260b8d5ee
4
+ data.tar.gz: 3019c6143a77cedf430e1b2bfee18eb89eea390b
5
5
  SHA512:
6
- metadata.gz: ac1f724bb366a27aea9a36f50bce7817c6fc710a7dfdd8a381f2e184468f79881b94acec9a75145682d23f3c6632f824ba3eac6b1019abc312e9f231eb893239
7
- data.tar.gz: e8e441475bf7413c9e91981f8a4878e7fd56c83f044d7966a85356756deecd12ba4f44995e37ae40674b781b464b4d4f3efc03ef03829de90963035a10a08326
6
+ metadata.gz: b971f6bbb520e519c1ad6d36aca18a261e5b3990dc55cdff09ffda5cbfe094545e6afeaac0e9dc228f6288bafa84a0c1a2318f7460666f3262300ff5de2708d1
7
+ data.tar.gz: 90322a1872d3855e8025be5dafa42cc6834c32fc66c266ef6ea6684946f9a5750f8a42dbb8822653872f6075b92f478d3b0c571e2ca60b15e0b3a942607a5a6f
@@ -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
- hula_cloud_foundry.delete_service_instance_and_unbind(service_instance.name, options)
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
@@ -9,5 +9,5 @@
9
9
  #
10
10
 
11
11
  module Prof
12
- VERSION = '0.33.0'
12
+ VERSION = '0.34.0'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CF London