spurious-server 0.2.0 → 0.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d6059176101d314677e678cc39411d554c33362
|
4
|
+
data.tar.gz: 12949b5edbcf1a91704becedb682871d9d16960c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e655f2956cb03e03d434a95a156aad5d696934e783febc2dec960e821025267425195040c9164d58acfc9ddebfdf82c5826b69467f91b01a04468335e1dad73
|
7
|
+
data.tar.gz: 3d95e7b51711d2e28212f5ae3826a140cfac40ce491792750c1200f2bc0d9871dd41f13ac49a214cf5c1c2c91d9f53cee7d7fa35611a653e339c00771c109d48
|
@@ -7,6 +7,13 @@ module Spurious
|
|
7
7
|
module State
|
8
8
|
class Ports < Base
|
9
9
|
|
10
|
+
attr_accessor :docker_host_ip
|
11
|
+
|
12
|
+
def initialize(connection, config, docker_host_ip)
|
13
|
+
super(connection, config)
|
14
|
+
@docker_host_ip = docker_host_ip
|
15
|
+
end
|
16
|
+
|
10
17
|
def execute!
|
11
18
|
ports = {}
|
12
19
|
spurious_containers.peach do |container|
|
@@ -18,7 +25,7 @@ module Spurious
|
|
18
25
|
container.json["NetworkSettings"]["Ports"].each do |guest, mapping|
|
19
26
|
mapping.each do |map|
|
20
27
|
ports[sanitize(container.json["Name"])] << {
|
21
|
-
:
|
28
|
+
:Host => docker_host_ip,
|
22
29
|
:HostPort => map["HostPort"]
|
23
30
|
}
|
24
31
|
end
|