takeltau 0.45.8 → 0.45.9

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: 8ea03d246d09318cf76e68b7a5dbad9b9d007fb208b11a99a37df261b1da453c
4
- data.tar.gz: 9d4157d2200efd5c7286ea12a4697c259d8acaeb05a600b142ca529f2c45d6ac
3
+ metadata.gz: 563c6169a25b3a9ec927e7a522985e857d16ada464053da7251f46cb2c13e83d
4
+ data.tar.gz: d8d7df3eafdb48fd85052b0fb473545e261d826c434f0c66ff20244588060cdc
5
5
  SHA512:
6
- metadata.gz: a441a81ae69d713b6b9cb1a07a538e31789e7dd4b46dde6c6505d27e5f2c7931a72d7dc5ed8fa81bac98f124d896c1d705fbc7222e8eed6f2b5df862230df135
7
- data.tar.gz: d0990faa441ad2c25b5c22d423050324369c3c23461cbc74810c7b4efbc58341fc5f302553763486cfc87fb176c6d9a5c05c063749d9f3cb23a71990fdf5bcf1
6
+ metadata.gz: dd0f6529f6c94691b2b28daf0f5c5134a89eaff8130da3c230cad2350aa6044d070724bc8622839be60a515092f275fb6245819c5f8722ced4a9849edf4d6a1e
7
+ data.tar.gz: ffedfb934a6c3ab8035e9630aa1531c23c37929b8d746332ecc47fae17328757e12891307de7297cbbe55c87f0feaba9fb9274436a44d98c59108e80efc53f80
@@ -94,6 +94,7 @@ ship_default_project: 'default'
94
94
  ship_docker_host: '32375'
95
95
  ship_env: ''
96
96
  ship_hostname: '%{ship_name}_%{unique}'
97
+ ship_images_sync: 'true'
97
98
  ship_name: 'takelship'
98
99
  ship_podman_localhost: '127.0.0.1'
99
100
  ship_repo: 'takelship'
@@ -60,6 +60,8 @@ module ShipContainerLib
60
60
  args = "#{args} #{config_args}" if config_args
61
61
  args_debug = '--env TAKELSHIP_DEBUG=true'
62
62
  args = "#{args} #{args_debug}" if log.level == Logger::DEBUG
63
+ args_sync = '--env TAKELSHIP_IMAGES_SYNC=false'
64
+ args = "#{args} #{args_sync}" unless config.active['ship_images_sync']
63
65
  args
64
66
  end
65
67
 
@@ -76,8 +76,15 @@ module ShipProjectStart
76
76
 
77
77
  # print ports after starting a takelship
78
78
  def _ship_project_start_print_ports(ports)
79
- output = []
80
79
  max_length = _ship_project_start_get_maxlength ports
80
+ ports_list = _ship_project_start_get_ports_list ports, max_length
81
+ ports_list.sort_by! { |port| port[:port] }
82
+ say ports_list.map { |port| port[:string] }.join("\n")
83
+ end
84
+
85
+ # get a sortable list of port numbers and strings describing the ports
86
+ def _ship_project_start_get_ports_list(ports, max_length)
87
+ ports_list = []
81
88
  ports.each_value do |port|
82
89
  next unless port['localhost'].to_i.between? 1, 65_535
83
90
 
@@ -85,9 +92,12 @@ module ShipProjectStart
85
92
  service = "[#{port['service']} #{port['protocol']}]"
86
93
  description = port['description']
87
94
  description = " (#{description})" if port.key? 'description'
88
- output << "#{url.ljust(max_length['url'])} #{service.ljust(max_length['service'])}#{description}"
95
+ ports_list << {
96
+ port: port['localhost'].to_i,
97
+ string: "#{url.ljust(max_length['url'])} #{service.ljust(max_length['service'])}#{description}"
98
+ }
89
99
  end
90
- say output.join("\n")
100
+ ports_list
91
101
  end
92
102
 
93
103
  # get max length of left column
data/lib/takeltau/version CHANGED
@@ -1 +1 @@
1
- 0.45.8
1
+ 0.45.9
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: takeltau
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.8
4
+ version: 0.45.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takelwerk