ecs_compose 0.1.0.pre4 → 0.1.0.pre5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ecs_compose/ecs.rb +1 -1
- data/lib/ecs_compose/manifest.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d82d128526a83b3610294cc9a313600285afe633
|
4
|
+
data.tar.gz: f5e3e9e44ba5ea784f0ef8c92d6e8573b016c75d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 737a830c4327bc56069aad9e7f4766b086a44f62abf1852d248adb358b7f57f7bff12a839c603bf17b97f6abe1a643f708b7f4d8d67db89dea070c3cb36ada09
|
7
|
+
data.tar.gz: a6f52d744e035a15cbf7de828725f3a95addb7f66970661b5ad788e784f6d09296dfb54b982843efa67507aac082da58c6ab6c70b76291e4c0236a0f64e0fa18
|
data/lib/ecs_compose/ecs.rb
CHANGED
@@ -48,7 +48,7 @@ module EcsCompose
|
|
48
48
|
# JSON format.
|
49
49
|
def self.update_service_with_json(service, json)
|
50
50
|
reg = register_task_definition(json)["taskDefinition"]
|
51
|
-
task_def = "#{reg
|
51
|
+
task_def = "#{reg.fetch('family')}:#{reg.fetch('revision')}"
|
52
52
|
update_service(service, task_def)
|
53
53
|
end
|
54
54
|
end
|
data/lib/ecs_compose/manifest.rb
CHANGED
@@ -13,10 +13,11 @@ module EcsCompose
|
|
13
13
|
# Read in a complete manifest.
|
14
14
|
def self.read_from_manifest(path)
|
15
15
|
dir = File.dirname(path)
|
16
|
-
|
17
|
-
|
16
|
+
yaml = Psych.load_file(path)
|
17
|
+
defs = yaml.fetch('task_definitions').map do |name, info|
|
18
|
+
TaskDefinition.new(info.fetch('type').to_sym,
|
18
19
|
name,
|
19
|
-
File.read(File.join(dir, info
|
20
|
+
File.read(File.join(dir, info.fetch('path'))))
|
20
21
|
end
|
21
22
|
new(defs)
|
22
23
|
end
|