ecs_compose 0.1.0.pre43 → 0.1.0.pre44
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/task_definition.rb +9 -4
- 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: 8e278ea4e1257aca16d94bda20673e8b61b57b90
|
4
|
+
data.tar.gz: 4f8dd23c28c0f3bd4c4eae0cb9a3e4e9a5e209de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 602d27bb45a977707fd102a82805dcc37802962ff9b314492d0e6b3d58b406c60317f57f89a709fe3f870a9fe6e6d2227a36dea39d04b1720336cdacae0d635e
|
7
|
+
data.tar.gz: 9490ac0abc35221364b012a84f4a30567afd4c9dc27818c84926aa575c42561d34cbcdfdff0c83c5588e855e4b7b4eb4f86021a18755112bb2c4f2be2c250182
|
@@ -61,16 +61,21 @@ module EcsCompose
|
|
61
61
|
nil
|
62
62
|
end
|
63
63
|
|
64
|
-
|
65
|
-
puts <<EOD
|
64
|
+
missing_service_warning = <<-STR
|
66
65
|
Can't find an existing service '#{name}'. You'll probably need to
|
67
66
|
register one manually using the AWS console and set up any load balancers
|
68
67
|
you might need.
|
69
|
-
|
68
|
+
STR
|
69
|
+
|
70
|
+
if description.nil?
|
71
|
+
puts missing_service_warning
|
70
72
|
return nil
|
71
73
|
end
|
72
74
|
|
73
|
-
service = description.fetch("services")[0]
|
75
|
+
unless service = description.fetch("services")[0]
|
76
|
+
puts missing_service_warning
|
77
|
+
return nil
|
78
|
+
end
|
74
79
|
|
75
80
|
# Find the primary deployment.
|
76
81
|
deployment = service.fetch("deployments").find do |d|
|