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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80f5c7cf66fd3c3bb6e88046f54c8f014b8a930ad57029ce8d9052061aa5e84c
4
- data.tar.gz: c07167d2704624e5ba953252e1b640e659dd5decf0a407383849c9e4077e4823
3
+ metadata.gz: 8725acf75c96beb16ee94a28406b4e4040ba23ac237f8557201d6e5b9b6b4a0d
4
+ data.tar.gz: 1d51afda07c47c961c9a80c2f0fe86764f986435e929b73a2e01a0c64f8249d0
5
5
  SHA512:
6
- metadata.gz: 7a28515f48460eca41522dcf97d057fdf32531ada65f9ffa22130f66a8c30de61f9df0548d9d5ad218d1b35e69ae955dd9d963af70cfcc780b8600701dcc4523
7
- data.tar.gz: b9fbf32b0c0a2563a9f89a8c8be6fdc269ae47f7722657f97d74207ffbac1392512e27b0310189b447d65e9a5401bb2de9fd66d6c76dae032afc587b14105466
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Harbr
4
- VERSION = "0.1.88"
4
+ VERSION = "0.1.90"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.88
4
+ version: 0.1.90
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke