cf-perm 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perm/v1/client.rb +0 -11
- data/lib/perm/version.rb +1 -1
- 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: 4d9e81609d1a7b83b50b548a1580b02aba74318c
|
4
|
+
data.tar.gz: 401f8d1fbda592e953bb48ded1d11e3cfd60c0ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ae0d0539d7ace4ba54f7945e929c3b8d380fe992fb583462d9f0882d82197ef1cf68f202f67acbca2a5cb4356a19ce098e41f452597deb4c862253fd70882ff
|
7
|
+
data.tar.gz: 70d2a03000bdf58ec2d4eaf5b64c58ebe5d0bf154b4c4833ef06ae42b45797689bb73cae7f1305a1a58f86e443b26ee6819e5709dd9f3c9e074d78b592c4296a
|
data/lib/perm/v1/client.rb
CHANGED
@@ -33,17 +33,6 @@ module CloudFoundry
|
|
33
33
|
raise Errors.from_grpc_error(e)
|
34
34
|
end
|
35
35
|
|
36
|
-
def get_role(name)
|
37
|
-
request = Protos::GetRoleRequest.new(name: name)
|
38
|
-
|
39
|
-
response = grpc_role_service.get_role(request)
|
40
|
-
role = response.role
|
41
|
-
|
42
|
-
Models::Role.new(name: role.name)
|
43
|
-
rescue GRPC::BadStatus => e
|
44
|
-
raise Errors.from_grpc_error(e)
|
45
|
-
end
|
46
|
-
|
47
36
|
def delete_role(name)
|
48
37
|
request = Protos::DeleteRoleRequest.new(name: name)
|
49
38
|
|
data/lib/perm/version.rb
CHANGED