dockerlib-remote 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/dockerlib/remote/client.rb +3 -3
- data/lib/dockerlib/remote/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmVkNjJiZmIyYTA0NDdkZmUxZTBiYTVhNzA4MzkxNDgxZDAxNDNiNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTFhNzU2OTE5OTUxYWU2YTExOWQ4YmIyN2JkMDQxNmU5YzkxZjYyZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGNhNzJlOGEwYzkwNTc4MGY4OGU4M2M4MTYwMjczY2NjNDdjNGU0MmE0MGVj
|
10
|
+
NWI5ZGJhYzljZjJhYmZkNjU5MzI4MmY3NDJkNzA2OTE1NDU4YzU0ZjBjZjcx
|
11
|
+
YWQ0ZDYxOTY5MjhkOGQxY2NlNDIyMTgwZGIyNGFlMWQzZTVmMmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTY4MjkyN2Q3Yzg1ZmU2ZTEyYzdlMWQ0MmNjMTU3Mzk0OThmOTZjNjkyM2Yy
|
14
|
+
MDM3NmFiYjZlZjM2OWQyZjVmYjY4YTQ5M2EzOGQzYmI1NGZhY2Y1ZWM3ZWIx
|
15
|
+
NWQ4OWI4NWQzZDkxNDE4NmM2Yjc4YTcyZmU1YTRkNTUyZjk3YTE=
|
@@ -8,7 +8,7 @@ module Dockerlib
|
|
8
8
|
def inspect_container(name)
|
9
9
|
resp = connection.request(method: :get, path: "/containers/#{name}/json")
|
10
10
|
if resp.status == 200
|
11
|
-
{
|
11
|
+
{data: load_body(resp)}
|
12
12
|
elsif resp.status == 404
|
13
13
|
{code: :no_such_container}
|
14
14
|
else
|
@@ -27,8 +27,8 @@ module Dockerlib
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def to_server_error(resp)
|
30
|
-
{error: :server_error,
|
31
|
-
|
30
|
+
{error: :server_error, data: {http_status: resp.status,
|
31
|
+
http_body: resp.body}}
|
32
32
|
end
|
33
33
|
end # Client
|
34
34
|
end # Remote
|