takeltau 0.45.26 → 0.45.27

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: e3ec41e566255fd31a1b9677ee752f17b1115ee77978ce6ce39e0d06dd8a3108
4
- data.tar.gz: 1fa00952758c1f787957989c2db97d7869d654eea373c603ed7cac551b09ab41
3
+ metadata.gz: 390e7c6d15846e010465eb34cbfd94361f25721d92284b708af2ae4c94a8e169
4
+ data.tar.gz: b750ee648215ceb991866f6efa368f8cbe0c7b247a53c8dbd27622106d49c663
5
5
  SHA512:
6
- metadata.gz: 7a48d0c291d703eabf9706806c6a435a917c143d6057a0022ba787286ca57ea1190d5c605233d08115b65966293c3c7f9e431326273dd6fbc22e6f58ff2a1037
7
- data.tar.gz: 266452fd5228f5a22f8450ada7f2e0f052eb08315aa86b14dc1f80b34d9f0989c3556680d041efb34674a31056734142b95a0ed8a83b52bc392dcb4138c2c2ea
6
+ metadata.gz: 79bcaeed5c88d9ea33c9fd3ca56bb8c522c1005467188bf42369dd4e1f9350156cee1dd5f373e405cb6d09bf4fa200b888dc5c6fc3c7689033191d6e3ace3881
7
+ data.tar.gz: de17dd2d6010a2667be3a22661de5d06c72d9be6293bce4c5a9a614fda5a17936354009458815146974560069854dd43cf14a96f87fb43ce043c3f5049438c34
@@ -7,12 +7,25 @@ module ShipInfoLib
7
7
  # Gather takelship information
8
8
  def _ship_info_lib_get_takelshipinfo
9
9
  log.debug 'Gathering takelship info'
10
- takelshipinfo = _ship_info_lib_get_info_from_docker
11
- return false if takelshipinfo.nil?
10
+ takelshipinfo = _ship_info_lib_get_info_from_file
11
+ takelshipinfo = _ship_info_lib_get_info_from_docker if takelshipinfo.empty?
12
+ return false unless takelshipinfo
12
13
 
13
14
  takelshipinfo
14
15
  end
15
16
 
17
+ # Read takelship info from file
18
+ def _ship_info_lib_get_info_from_file
19
+ log.debug 'Reading takelship info from file'
20
+ ship_data_dir = config.active['ship_data_dir']
21
+ yaml_file = format(
22
+ config.active['ship_takelship_yml'],
23
+ pwd: Dir.getwd,
24
+ ship_data_dir: ship_data_dir
25
+ )
26
+ read_yaml_file(yaml_file) || {}
27
+ end
28
+
16
29
  # Read takelship info from docker run
17
30
  def _ship_info_lib_get_info_from_docker
18
31
  log.debug 'Reading takelship info from takelship container'
data/lib/takeltau/version CHANGED
@@ -1 +1 @@
1
- 0.45.26
1
+ 0.45.27
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.26
4
+ version: 0.45.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takelwerk