harbr 0.1.88 → 0.1.90
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/harbr/job.rb +13 -1
- data/lib/harbr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8725acf75c96beb16ee94a28406b4e4040ba23ac237f8557201d6e5b9b6b4a0d
|
4
|
+
data.tar.gz: 1d51afda07c47c961c9a80c2f0fe86764f986435e929b73a2e01a0c64f8249d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 179b61c61e156ca1ac250e8c89a65e53ad0c9f3542829b4e8553cc2f82706183ad8f41acdabcec5b2a5a86a928202a85a3e7fbc301ce5b328e431f0dd97b952e
|
7
|
+
data.tar.gz: dda122a929cb874348df5403faac53aa1b4b999403d6ce7639e86ae6b46bdd8f4829fb8836e7b7b09c8a46a938400d4465498a2a10eefd7fbd5c84c20c888cda
|
data/lib/harbr/job.rb
CHANGED
@@ -42,7 +42,7 @@ module Harbr
|
|
42
42
|
def collate_containers(name, host, port, host_header_aliases = [])
|
43
43
|
containers = Harbr::Container::Repository.new
|
44
44
|
container = containers.find_by_header(host)
|
45
|
-
|
45
|
+
|
46
46
|
if container.nil?
|
47
47
|
container = Harbr::Container.new
|
48
48
|
container.name = name
|
@@ -56,14 +56,26 @@ module Harbr
|
|
56
56
|
containers.update(container)
|
57
57
|
end
|
58
58
|
|
59
|
+
|
59
60
|
if host_header_aliases
|
60
61
|
host_header_aliases.each do |host_header_alias|
|
62
|
+
|
61
63
|
container = Harbr::Container.new
|
62
64
|
container.name = "#{name} -> #{host_header_alias}"
|
63
65
|
container.host_header = host_header_alias
|
64
66
|
container.ip = "127.0.0.1"
|
65
67
|
container.port = port
|
66
68
|
containers.create(container) unless containers.find_by_header(host_header_alias)
|
69
|
+
|
70
|
+
if(container.name.start_with?("live"))
|
71
|
+
container = Harbr::Container.new
|
72
|
+
container.name = "#{name} -> #{host_header_alias.gsub("live","")}"
|
73
|
+
container.host_header = host_header_alias.gsub("live","")
|
74
|
+
container.ip = "127.0.0.1"
|
75
|
+
container.port = port
|
76
|
+
containers.create(container) unless containers.find_by_header(host_header_alias)
|
77
|
+
end
|
78
|
+
|
67
79
|
end
|
68
80
|
end
|
69
81
|
|
data/lib/harbr/version.rb
CHANGED