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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c4bd0ae49d5f84f574d2f0d24a0a9f6b210842e
4
- data.tar.gz: bf34e32033cab10dc78c5b35a966648d3478d8a7
3
+ metadata.gz: 8e278ea4e1257aca16d94bda20673e8b61b57b90
4
+ data.tar.gz: 4f8dd23c28c0f3bd4c4eae0cb9a3e4e9a5e209de
5
5
  SHA512:
6
- metadata.gz: 9d4f452e849d0296828946152e856488fe5a6ecfa14159d53377abfe53cfae4e662cfeda5004f981eeefc85f47eb6629d93becd102be4225edc2ac9aa48a5027
7
- data.tar.gz: fe518b08a8d483dbd83312c5a70d14010148b3eb8f64a6c7f8f0f279b4c6d64bfbd18490ec99264ff50d211b6a7bc9c948924eb7288fd1fb140ee91352bb4b73
6
+ metadata.gz: 602d27bb45a977707fd102a82805dcc37802962ff9b314492d0e6b3d58b406c60317f57f89a709fe3f870a9fe6e6d2227a36dea39d04b1720336cdacae0d635e
7
+ data.tar.gz: 9490ac0abc35221364b012a84f4a30567afd4c9dc27818c84926aa575c42561d34cbcdfdff0c83c5588e855e4b7b4eb4f86021a18755112bb2c4f2be2c250182
@@ -61,16 +61,21 @@ module EcsCompose
61
61
  nil
62
62
  end
63
63
 
64
- if description.nil?
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
- EOD
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|
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.pre43
4
+ version: 0.1.0.pre44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kidd