cf_ruby_client 0.8 → 0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cf_ruby_client/base.rb +5 -5
- data/lib/cf_ruby_client/service_instance.rb +9 -1
- data/lib/cf_ruby_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba1e65b8e9948ea9c1b5dfd9d335f07597625978
|
|
4
|
+
data.tar.gz: 578b79b66bffbe62caeb29a41be95ee41a428249
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1eddece68c0df7af1ba3c91664930b7e94ed593d873e037b24dc7b36d91f5c2350e587620ec0c557fbb74bdf179d80ca1ef8517b9315730b6b117e8abb363bae
|
|
7
|
+
data.tar.gz: 7a2fa9375ae6b4a0ce9a3dbef9dd8e531f2c77a7062467bcb8272c7f5a94af272d63ea41893bda7b1affcc67612c3d8d7645c29aa84ec868795624b08c40baa0
|
data/lib/cf_ruby_client/base.rb
CHANGED
|
@@ -31,7 +31,7 @@ module CfRubyClient
|
|
|
31
31
|
logger.warn "cf_ruby_client: not found"
|
|
32
32
|
"{}"
|
|
33
33
|
else
|
|
34
|
-
logger.error "cf_ruby_client: Received: #{response
|
|
34
|
+
logger.error "cf_ruby_client: Received: #{response}"
|
|
35
35
|
response.return!(&block)
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -47,7 +47,7 @@ module CfRubyClient
|
|
|
47
47
|
logger.warn "cf_ruby_client: not found"
|
|
48
48
|
false
|
|
49
49
|
else
|
|
50
|
-
logger.error "cf_ruby_client: Received: #{response
|
|
50
|
+
logger.error "cf_ruby_client: Received: #{response}"
|
|
51
51
|
response.return!(&block)
|
|
52
52
|
end
|
|
53
53
|
end
|
|
@@ -63,7 +63,7 @@ module CfRubyClient
|
|
|
63
63
|
logger.warn "cf_ruby_client: not found"
|
|
64
64
|
false
|
|
65
65
|
else
|
|
66
|
-
logger.error "cf_ruby_client: Received: #{response
|
|
66
|
+
logger.error "cf_ruby_client: Received: #{response}"
|
|
67
67
|
response.return!(&block)
|
|
68
68
|
end
|
|
69
69
|
end
|
|
@@ -79,7 +79,7 @@ module CfRubyClient
|
|
|
79
79
|
logger.warn "cf_ruby_client: not found"
|
|
80
80
|
false
|
|
81
81
|
else
|
|
82
|
-
logger.error "cf_ruby_client: Received: #{response
|
|
82
|
+
logger.error "cf_ruby_client: Received: #{response}"
|
|
83
83
|
response.return!(&block)
|
|
84
84
|
end
|
|
85
85
|
end
|
|
@@ -95,7 +95,7 @@ module CfRubyClient
|
|
|
95
95
|
logger.warn "cf_ruby_client: not found"
|
|
96
96
|
false
|
|
97
97
|
else
|
|
98
|
-
logger.error "cf_ruby_client: Received: #{response
|
|
98
|
+
logger.error "cf_ruby_client: Received: #{response}"
|
|
99
99
|
response.return!(&block)
|
|
100
100
|
end
|
|
101
101
|
end
|
|
@@ -29,6 +29,15 @@ module CfRubyClient
|
|
|
29
29
|
instance["entity"]["space_guid"]
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
def shared_to
|
|
33
|
+
url_path = "#{SERVICE_INSTANCES_PATH}/#{service_instance_guid}/shared_to"
|
|
34
|
+
|
|
35
|
+
result = JSON::parse(fetch_entities(url_path))
|
|
36
|
+
result['resources'] = [] unless result['resources']
|
|
37
|
+
|
|
38
|
+
result
|
|
39
|
+
end
|
|
40
|
+
|
|
32
41
|
def service_bindings
|
|
33
42
|
url_path = "#{SERVICE_INSTANCES_PATH}/#{service_instance_guid}/service_bindings"
|
|
34
43
|
|
|
@@ -107,4 +116,3 @@ module CfRubyClient
|
|
|
107
116
|
end
|
|
108
117
|
end
|
|
109
118
|
end
|
|
110
|
-
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cf_ruby_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.10'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Both
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2018-07-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cf-uaa-lib
|