harbr 0.1.88 → 0.1.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80f5c7cf66fd3c3bb6e88046f54c8f014b8a930ad57029ce8d9052061aa5e84c
4
- data.tar.gz: c07167d2704624e5ba953252e1b640e659dd5decf0a407383849c9e4077e4823
3
+ metadata.gz: 9ad949e526f740ac3c36c3463a462a6040070c698d6faa562204b2a57da5ee46
4
+ data.tar.gz: 44071409e91e41197081a3fafbb9cd73a76a26d2de2be66410e89e9aaec9b627
5
5
  SHA512:
6
- metadata.gz: 7a28515f48460eca41522dcf97d057fdf32531ada65f9ffa22130f66a8c30de61f9df0548d9d5ad218d1b35e69ae955dd9d963af70cfcc780b8600701dcc4523
7
- data.tar.gz: b9fbf32b0c0a2563a9f89a8c8be6fdc269ae47f7722657f97d74207ffbac1392512e27b0310189b447d65e9a5401bb2de9fd66d6c76dae032afc587b14105466
6
+ metadata.gz: adbee78fc8dc6d2c173558b43bcb8a8cb82c1d39d5780dfcb5bde8bdfab03537d47aac351b29c5e5115ef6f100cba5b8843163e7162ea8cc904080bee64f75eb
7
+ data.tar.gz: bec90083bdda3c8ae75f9645d628824e5aa6866bfdaa81223cf65e618afab0f495873bd5bf21d4d6fd99c7b4d583e3dd3b60c839717e89f1bfd6fe608877e0c4
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.starts_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.89"
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.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke