hako 0.17.1 → 0.17.2

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
  SHA1:
3
- metadata.gz: 1a1f4be2a7a0950001e3c6dbcbb4f76e88460b7b
4
- data.tar.gz: d43f1b995730e81462c597377d03a7ccb3ce9e6d
3
+ metadata.gz: daada56b5f8aa658441ff166bc8edd230092b102
4
+ data.tar.gz: 68a71148392934f2dcf224bdf0dc6fbc509cc0b9
5
5
  SHA512:
6
- metadata.gz: 1597c0176b534aec392c471f8aa51eb6eee9fcd608801a6e2f2d5ff68b96c36bf757d5685483b1faa010cda23cb229fe3fa89549da2a7eff59cacb692c1a6650
7
- data.tar.gz: ddcc12d26dd752be52164fb862f410843fd21ab0ed03fa6431486fbe36805fd7ea0a989f075081cd65f732afc440b1afc2ed3f35afd5dde60d82ce6aed6bbfaf
6
+ metadata.gz: 3477cb28ef35a80024402bb8c2da2b9d1b07adc5548c34682719334a6164f338373a18a2c29c727fcbf701708bd27590a23f851f5a49b224e67dade7cedf5041
7
+ data.tar.gz: 7dafec4447c9f78de768895ff42eabba9ebbc30ede6b6bb157f335e7b94c0b2d25e72cae91a0391c545d0de367f481e56ae8e13a7b7463d332dacaa4e45e33ee
@@ -51,6 +51,16 @@ module Hako
51
51
  end
52
52
  end
53
53
 
54
+ # @return [Array<Hash>]
55
+ def volumes_from
56
+ @definition['volumes_from'].map do |volumes_from|
57
+ {
58
+ source_container: volumes_from.fetch('source_container'),
59
+ read_only: volumes_from.fetch('read_only', false),
60
+ }
61
+ end
62
+ end
63
+
54
64
  private
55
65
 
56
66
  PROVIDERS_KEY = '$providers'
@@ -84,6 +94,7 @@ module Hako
84
94
  'links' => [],
85
95
  'mount_points' => [],
86
96
  'port_mappings' => [],
97
+ 'volumes_from' => [],
87
98
  }
88
99
  end
89
100
 
@@ -414,6 +414,7 @@ module Hako
414
414
  docker_labels: container.docker_labels,
415
415
  mount_points: container.mount_points,
416
416
  command: container.command,
417
+ volumes_from: container.volumes_from,
417
418
  }
418
419
  end
419
420
 
@@ -11,6 +11,7 @@ module Hako
11
11
  PORT_MAPPING_KEYS = %i[container_port host_port protocol].freeze
12
12
  ENVIRONMENT_KEYS = %i[name value].freeze
13
13
  MOUNT_POINT_KEYS = %i[source_volume container_path read_only].freeze
14
+ VOLUMES_FROM_KEYS = %i[source_container read_only].freeze
14
15
 
15
16
  # @param [Aws::ECS::Types::ContainerDefinition] actual_container
16
17
  # @return [Boolean]
@@ -30,6 +31,9 @@ module Hako
30
31
  if different_array?(@expected_container, actual_container, :mount_points, MOUNT_POINT_KEYS)
31
32
  return true
32
33
  end
34
+ if different_array?(@expected_container, actual_container, :volumes_from, VOLUMES_FROM_KEYS)
35
+ return true
36
+ end
33
37
 
34
38
  false
35
39
  end
data/lib/hako/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hako
3
- VERSION = '0.17.1'
3
+ VERSION = '0.17.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki