delphix 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/delphix.rb +1 -6
- data/lib/delphix/version.rb +1 -1
- data/lib/delphix/web_response.rb +6 -2
- 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: 3efeefeb0545619a8b648c907e865d2d3cad5789
|
4
|
+
data.tar.gz: 4b1321d0433c79bcd69017f69db71fb0508e618a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7399351d1b85fdfe51a57f105dfc97e0ffa1619e5325ff8ce9f4a3b623de6a4c910e464691535e82520e15252ac6fd2e01c95bb067b6fb3303e7f9658c50138e
|
7
|
+
data.tar.gz: 19b29624f8cafe6a51d34b3ba95120aa2ac63d5d1019d9a31431b54e911185ea2c38b8ae9b6578a60895ffea57b10d7c4a3a8c14644d0d9592eab94f02ac8679
|
data/lib/delphix.rb
CHANGED
@@ -220,11 +220,6 @@ module Delphix
|
|
220
220
|
# resource_url shorthand.
|
221
221
|
# @return [String] The API path to sourceconfig.
|
222
222
|
#
|
223
|
-
# @!method template
|
224
|
-
# A helper method to return the URL for the resource by using the
|
225
|
-
# resource_url shorthand.
|
226
|
-
# @return [String] The API path to template.
|
227
|
-
#
|
228
223
|
# @!method timeflow
|
229
224
|
# A helper method to return the URL for the resource by using the
|
230
225
|
# resource_url shorthand.
|
@@ -237,7 +232,7 @@ module Delphix
|
|
237
232
|
#
|
238
233
|
[ :alert, :container, :database, :environment, :group, :host, :job,
|
239
234
|
:login, :policy, :repository, :session, :snapshot, :source,
|
240
|
-
:sourceconfig, :
|
235
|
+
:sourceconfig, :timeflow, :user
|
241
236
|
].each do |name|
|
242
237
|
define_singleton_method(name.to_s + '_url') do
|
243
238
|
api_url('/resources/json/delphix/' + name.to_s)
|
data/lib/delphix/version.rb
CHANGED
data/lib/delphix/web_response.rb
CHANGED
@@ -47,16 +47,20 @@ module Delphix
|
|
47
47
|
@code = response.code
|
48
48
|
@headers = response.headers
|
49
49
|
@raw_body = response
|
50
|
-
@body =
|
50
|
+
@body = @raw_body
|
51
51
|
@cookies = response.cookies
|
52
52
|
|
53
53
|
Delphix.last_response = {
|
54
54
|
code: response.code,
|
55
55
|
headers: response.headers,
|
56
|
-
body: response.body,
|
56
|
+
body: Hashie::Mash.new(JSON.parse(response.body)),
|
57
57
|
cookies: response.cookies,
|
58
58
|
description: response.description
|
59
59
|
}
|
60
|
+
begin
|
61
|
+
@body = Hashie::Mash.new(JSON.parse(@raw_body))
|
62
|
+
rescue Exception
|
63
|
+
end
|
60
64
|
end
|
61
65
|
end
|
62
66
|
end
|