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: 2857a7501dfa9a6cb090fdf6bd03b3c3b0e93b57
4
- data.tar.gz: c9443a29a589e2d45dac9759800243c5b420a465
3
+ metadata.gz: 6d6059176101d314677e678cc39411d554c33362
4
+ data.tar.gz: 12949b5edbcf1a91704becedb682871d9d16960c
5
5
  SHA512:
6
- metadata.gz: f78bd3c063f303a3087d4ca85992c190665daa2e1e8c3ee7d218f3a2a51b2be3e1c58a95976de2f7ce8627e227813e58856edcd1454204be565590a102faec27
7
- data.tar.gz: 164f8828dde6b394ccfc2f9c60ee2658336d654ddc61474247f3b9d8395da084cea7b3227230df91decf6ffee87d7d700350c63263d01b98f99f5090b7e9b222
6
+ metadata.gz: 2e655f2956cb03e03d434a95a156aad5d696934e783febc2dec960e821025267425195040c9164d58acfc9ddebfdf82c5826b69467f91b01a04468335e1dad73
7
+ data.tar.gz: 3d95e7b51711d2e28212f5ae3826a140cfac40ce491792750c1200f2bc0d9871dd41f13ac49a214cf5c1c2c91d9f53cee7d7fa35611a653e339c00771c109d48
@@ -20,7 +20,7 @@ module Spurious
20
20
  when :stop
21
21
  Stop.new(connection, config)
22
22
  when :ports
23
- Ports.new(connection, config)
23
+ Ports.new(connection, config, docker_host_ip)
24
24
  when :delete
25
25
  Delete.new(connection, config)
26
26
  when :update
@@ -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
- :GuestPort => guest.split('/').first,
28
+ :Host => docker_host_ip,
22
29
  :HostPort => map["HostPort"]
23
30
  }
24
31
  end
@@ -1,5 +1,5 @@
1
1
  module Spurious
2
2
  module Server
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spurious-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack