triglav-client 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/triglav/client.rb +6 -6
- data/lib/triglav/client/version.rb +1 -1
- data/lib/triglav/model.rb +5 -5
- 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: 01e910aa582540480c64224ed218898530fe32bb
|
4
|
+
data.tar.gz: e4c7c133738561cfcece8d284f579c67629dc1c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ef626eccb314aa7f5ee91d3bb3bd57253277b33d86a1bd7ee7e8aec6d20642f14394b4dc29522c5c43c62b01d27db0a1141cc5bc1f92b0cfd8101535db41650
|
7
|
+
data.tar.gz: fb721cc27b0fc9d3e32e87cdbccaca2d1b6453ef971b5874d8fe6600447f3057f85aacb8191423b711c25891cce63e7757ec83b731cbc7b03c81b028cdade9ad
|
data/CHANGES.md
CHANGED
data/lib/triglav/client.rb
CHANGED
@@ -19,15 +19,15 @@ module Triglav
|
|
19
19
|
end
|
20
20
|
|
21
21
|
API_ENDPOINT_MAP = {
|
22
|
-
services: { method: :get, path: '/api/services
|
23
|
-
roles: { method: :get, path: '/api/roles
|
24
|
-
roles_in: { method: :get, path: ['/api/services/%s/roles
|
25
|
-
hosts: { method: :get, path: '/api/hosts
|
22
|
+
services: { method: :get, path: '/api/services' },
|
23
|
+
roles: { method: :get, path: '/api/roles' },
|
24
|
+
roles_in: { method: :get, path: ['/api/services/%s/roles'] },
|
25
|
+
hosts: { method: :get, path: '/api/hosts' },
|
26
26
|
hosts_in: {
|
27
27
|
method: :get,
|
28
28
|
path: [
|
29
|
-
'/api/services/%s/hosts
|
30
|
-
'/api/services/%s/roles/%s/hosts
|
29
|
+
'/api/services/%s/hosts',
|
30
|
+
'/api/services/%s/roles/%s/hosts',
|
31
31
|
]
|
32
32
|
},
|
33
33
|
}
|
data/lib/triglav/model.rb
CHANGED
@@ -12,11 +12,11 @@ module Triglav
|
|
12
12
|
end
|
13
13
|
|
14
14
|
API_ENDPOINT_MAP = {
|
15
|
-
create: { method: :post, path: '/api/%s
|
16
|
-
show: { method: :get, path: '/api/%s/%s
|
17
|
-
update: { method: :post, path: '/api/%s/%s
|
18
|
-
destroy: { method: :delete, path: '/api/%s/%s
|
19
|
-
revert: { method: :get, path: '/api/%s/%s/revert
|
15
|
+
create: { method: :post, path: '/api/%s' },
|
16
|
+
show: { method: :get, path: '/api/%s/%s' },
|
17
|
+
update: { method: :post, path: '/api/%s/%s' },
|
18
|
+
destroy: { method: :delete, path: '/api/%s/%s' },
|
19
|
+
revert: { method: :get, path: '/api/%s/%s/revert' },
|
20
20
|
}
|
21
21
|
|
22
22
|
def self.endpoint_for (type, *args)
|