hula 0.12.0 → 0.13.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fee1e28cab3a4e660f276a9f00438eae658c7db
|
4
|
+
data.tar.gz: 43bb95a4e06de67de6496abbbd5a1453b57626cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db1ea04312e050770d2cc0404225afcf196155aab82954b368bc80dc80c4fd32b75e1978e5ff6a33318aef16ac4df690385ae565044f9f26057b8a6068f4c293
|
7
|
+
data.tar.gz: 525b83c7c3787536f1ccfb053ac51fd91f67015205e44b703f4fc577a19518bc9507816c14163c08d8e3ef77bc0753c3b2c462d7fc626ba3770d7429495d82cc
|
@@ -48,8 +48,8 @@ module Hula
|
|
48
48
|
ServiceInstance.new(id: service_instance_id)
|
49
49
|
end
|
50
50
|
|
51
|
-
def deprovision_instance(service_instance)
|
52
|
-
http_deprovision_service(service_instance_id: service_instance.id)
|
51
|
+
def deprovision_instance(service_instance, plan)
|
52
|
+
http_deprovision_service(service_instance_id: service_instance.id, plan_id: plan.id, service_id: plan.service_id)
|
53
53
|
end
|
54
54
|
|
55
55
|
def bind_instance(service_instance, binding_id: SecureRandom.uuid)
|
@@ -90,9 +90,13 @@ module Hula
|
|
90
90
|
)
|
91
91
|
end
|
92
92
|
|
93
|
-
def http_deprovision_service(service_instance_id:)
|
93
|
+
def http_deprovision_service(service_instance_id:, plan_id:, service_id:)
|
94
|
+
uri = url.dup
|
95
|
+
uri.path = uri.path += "/v2/service_instances/#{service_instance_id}"
|
96
|
+
params = { :'plan_id' => plan_id, :'service_id' => service_id}
|
97
|
+
uri.query = URI.encode_www_form(params)
|
94
98
|
http_client.delete(
|
95
|
-
|
99
|
+
uri,
|
96
100
|
auth: {
|
97
101
|
username: username,
|
98
102
|
password: password
|
@@ -54,7 +54,7 @@ module Hula
|
|
54
54
|
send_request(request)
|
55
55
|
end
|
56
56
|
|
57
|
-
def delete(uri, auth: nil, headers: nil)
|
57
|
+
def delete(uri, auth: nil, headers: nil, params: nil)
|
58
58
|
request = Net::HTTP::Delete.new(uri)
|
59
59
|
request.basic_auth auth.fetch(:username), auth.fetch(:password) unless auth.nil?
|
60
60
|
if not headers.nil?
|
data/lib/hula/version.rb
CHANGED