conjur-asset-service-gateway-api 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conjur-asset-service-gateway-version.rb +1 -1
- data/lib/conjur/service_gateway.rb +8 -2
- data/lib/conjur/web_service.rb +6 -0
- 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: d9fe5402663a6e353499b505063c9800417c3f47
|
4
|
+
data.tar.gz: 89937433a26b470ed9ce88437579a23ead72aa1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fc371a243a84531a5f38836d56b2329f8e657c607565bd5c6d9c56dc323a59d01ddf5e35e0502de2d4cb50eee9d36cb9849d4fc78be4debede882bbc70ed0d3
|
7
|
+
data.tar.gz: acd3ac0a67c2416e9c6497b77e6f87ad9ae4393d5f67f88c20173d5ed7537be03e9c6198f0aa5d5262d66c8bc27923900e8870890deac11663675e586f29ed25
|
@@ -1,6 +1,12 @@
|
|
1
1
|
module Conjur
|
2
2
|
class ServiceGateway < RestClient::Resource
|
3
3
|
include ActsAsAsset
|
4
|
+
|
5
|
+
def proxies
|
6
|
+
self.attributes['proxies'].map do |roleid|
|
7
|
+
Role.new(Conjur::Authz::API.host, self.options)[Conjur::API.parse_role_id(roleid).join('/')]
|
8
|
+
end
|
9
|
+
end
|
4
10
|
|
5
11
|
def add_proxy(role)
|
6
12
|
log do |logger|
|
@@ -30,8 +36,8 @@ module Conjur
|
|
30
36
|
end
|
31
37
|
|
32
38
|
def web_services
|
33
|
-
self.attributes['web_services'].
|
34
|
-
Conjur::WebService.new("#{Conjur::
|
39
|
+
self.attributes['web_services'].collect do |attrs|
|
40
|
+
Conjur::WebService.new("#{Conjur::ServiceGateways::API.host}/web_services/#{path_escape attrs['id']}", options).tap do |d|
|
35
41
|
d.attributes = attrs
|
36
42
|
end
|
37
43
|
end
|
data/lib/conjur/web_service.rb
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
module Conjur
|
2
2
|
class WebService < RestClient::Resource
|
3
3
|
include ActsAsAsset
|
4
|
+
|
5
|
+
def clients
|
6
|
+
self.attributes['clients'].map do |roleid|
|
7
|
+
Role.new(Conjur::Authz::API.host, self.options)[Conjur::API.parse_role_id(roleid).join('/')]
|
8
|
+
end
|
9
|
+
end
|
4
10
|
|
5
11
|
def add_client(member)
|
6
12
|
RestClient::Resource.new(self["clients"].url, self.options).post(id: member)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjur-asset-service-gateway-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: conjur-api
|