takeltau 0.44.27 → 0.44.29

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: c930f7f250bd6480ece0a2cccab9211e1756e7d4051a046754520bbea0b997b7
4
- data.tar.gz: a48606caaa7c511cdc2b4bc57f54dca50c22fb901a83b18128a7a5dfebfa7502
3
+ metadata.gz: 4af5fc9f1930e7b6b11e1ebf4d2af883e8db4637595392ab80856e214d96659a
4
+ data.tar.gz: f65c12c5676d3a4df61fe5fb90280446486af6bdd7ed8d47e5db4f546403f3b4
5
5
  SHA512:
6
- metadata.gz: 65623941de415bb307f329767b3fdbc360726ace1a094cd65a9675b4974c36fdad8e0f6fc89dbf5a9357cf33372b263c79ccbf5836d118df9e01ab81322fbc29
7
- data.tar.gz: 657ef5a7a80dd7c9796e29f77656cb5d42415922755afd852ba9498bcbf0542facbd6d1ccb7300924bef4bbe5d2a2dbf8b4e7f2251372fd2745c1f4e0d318ec4
6
+ metadata.gz: 89433fe5f3335b761215eeb7733757befb4bf7549ddd4caf78249f8f436199abd3876a045114eef09e0574380e8354d8f1fbafaaba2165f5de790753d90b4da8
7
+ data.tar.gz: 93800b4cf6a686a44777d91d3adf6c611fe29e016b74c30f813bf9347d2e79393a7e20e68ff7a8adc68e0c8a77d4e831c1099be3206b98af13220160f54a9633
@@ -44,7 +44,7 @@ module ShipContainerLib
44
44
  image: _ship_container_lib_image,
45
45
  command: command
46
46
  )
47
- run cmd_docker_run_command
47
+ run_and_capture cmd_docker_run_command
48
48
  end
49
49
 
50
50
  # rubocop:enable Metrics/MethodLength
@@ -17,7 +17,9 @@ module ShipProjectStart
17
17
  _ship_ports_lib_write_ports(ports, project)
18
18
 
19
19
  log.debug "Starting takelship project \"#{project}\""
20
- _ship_container_lib_docker_privileged ports, project
20
+ ship_status = _ship_container_lib_docker_privileged ports, project
21
+ return false unless _ship_container_lib_started? ship_status
22
+
21
23
  _ship_project_start_print_banner project
22
24
  _ship_project_start_print_ports ports
23
25
  true
@@ -51,6 +53,15 @@ module ShipProjectStart
51
53
  false
52
54
  end
53
55
 
56
+ # check if the ship started successfully
57
+ def _ship_container_lib_started?(ship_status)
58
+ return true if ship_status[2].zero?
59
+
60
+ say 'Unable to start the takelship. The error message was:'
61
+ say ship_status[1].to_s.strip.delete_prefix('"').delete_suffix('"')
62
+ false
63
+ end
64
+
54
65
  # print banner with status information
55
66
  def _ship_project_start_print_banner(project)
56
67
  ship_hostname = _ship_container_lib_ship_hostname
data/lib/takeltau/version CHANGED
@@ -1 +1 @@
1
- 0.44.27
1
+ 0.44.29
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.44.27
4
+ version: 0.44.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takelwerk