cf_ruby_client 0.8 → 0.10

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: 957ba15dd85a868f07e6e375ac9cda9a06df0d5c
4
- data.tar.gz: f46f4651be01f2aad4962656881675363b2316c3
3
+ metadata.gz: ba1e65b8e9948ea9c1b5dfd9d335f07597625978
4
+ data.tar.gz: 578b79b66bffbe62caeb29a41be95ee41a428249
5
5
  SHA512:
6
- metadata.gz: d57433d1e7ab07e547ea07f5e99cd266c35dc8c7fb63c00423e912b4ac57cc445e029dc6e4c4f179d16abd3ba249d9d8a9ff2401abdf6c30a802257d07db51ee
7
- data.tar.gz: 9fb48d71d74993ae6502ac110aa5dd727ad01206a62d8370167e7af0d5f381f11ad99eed2d72745851405f6089ebe28e9b931ffd7f81288faead09e588a4442f
6
+ metadata.gz: 1eddece68c0df7af1ba3c91664930b7e94ed593d873e037b24dc7b36d91f5c2350e587620ec0c557fbb74bdf179d80ca1ef8517b9315730b6b117e8abb363bae
7
+ data.tar.gz: 7a2fa9375ae6b4a0ce9a3dbef9dd8e531f2c77a7062467bcb8272c7f5a94af272d63ea41893bda7b1affcc67612c3d8d7645c29aa84ec868795624b08c40baa0
@@ -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.inspect}"
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.inspect}"
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.inspect}"
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.inspect}"
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.inspect}"
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
-
@@ -1,3 +1,3 @@
1
1
  module CfRubyClient
2
- VERSION = "0.8"
2
+ VERSION = "0.10"
3
3
  end
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.8'
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: 2017-05-04 00:00:00.000000000 Z
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