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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03ed8e188cb8fa565118d8c2c16ba0356598cd7b
4
- data.tar.gz: a415fe0ad3bfcaea20c8b099d9c912287c9c2050
3
+ metadata.gz: d82d128526a83b3610294cc9a313600285afe633
4
+ data.tar.gz: f5e3e9e44ba5ea784f0ef8c92d6e8573b016c75d
5
5
  SHA512:
6
- metadata.gz: eabf75635023f1d8cf4b4d040c181d46cb65e3086e00af95056f3efa14115902f418e15741e87431a3cf654f0c9ea5ba3a87eaa77e5bf89a00e8c703e97ad7f3
7
- data.tar.gz: 1e718e40e5eed1a37a1c01c33652cbc4f5d030fbd715d6cc53016b3dd5e8f73b434ce160611d01b3b43150de1aac87c419de0137b0db70a32cc0b5345ea6bf15
6
+ metadata.gz: 737a830c4327bc56069aad9e7f4766b086a44f62abf1852d248adb358b7f57f7bff12a839c603bf17b97f6abe1a643f708b7f4d8d67db89dea070c3cb36ada09
7
+ data.tar.gz: a6f52d744e035a15cbf7de828725f3a95addb7f66970661b5ad788e784f6d09296dfb54b982843efa67507aac082da58c6ab6c70b76291e4c0236a0f64e0fa18
@@ -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['family']}:#{reg['revision']}"
51
+ task_def = "#{reg.fetch('family')}:#{reg.fetch('revision')}"
52
52
  update_service(service, task_def)
53
53
  end
54
54
  end
@@ -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
- defs = Psych.load_file(path)['task_definitions'].map do |name, info|
17
- TaskDefinition.new(info['type'].to_sym,
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['path'])))
20
+ File.read(File.join(dir, info.fetch('path'))))
20
21
  end
21
22
  new(defs)
22
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecs_compose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre4
4
+ version: 0.1.0.pre5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kidd