ufo 4.1.8 → 4.1.9

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
  SHA256:
3
- metadata.gz: fbed0337ef427b9207e2519ea203529f4f2db33c8b3b8a2566e53ad88da9456b
4
- data.tar.gz: c4f46be9a77ab2946db88193429b0c9317fd5b9c61b909c2861514312dbc894f
3
+ metadata.gz: 027df9548ff36814edabb306f479d724bf814e97e87fe4c1dcfadd174a1c3e6d
4
+ data.tar.gz: 11a709c1ff86f34775cb857c460d2bd0105cb634bcdacc802374d5611056835f
5
5
  SHA512:
6
- metadata.gz: 9e6cd3faba4289427dfbbdd1fc65785ad563bab135a9e3816b4094ba93a4c97392e3591bd0aeeed909759ceef1fc27cfced0bacf6be33896da90ceb052418f91
7
- data.tar.gz: 0452d37d8a1e785ca5f9bf0d91995d16e575d61ca0d7563f6d17ea556ae35bb03f155fde9917efb1a83c73cce1dca852702a85191f952822935c4cae644dafa1
6
+ metadata.gz: 13560ecfb4063f479b9af95c097a7d16747a5f87ee2191c8393f528d385845e0751b49a390c1208e03a9b8e2b1b78917c8ab76d19e99abb4658218d8bb8e08b9
7
+ data.tar.gz: 5d3b9b9eedf0c63fc892bbcc826bb8b1fd325285951ab687e0f03264c5c22e739e672ab3dd27614c6d7499d3f3ad543a2cea50c8aaa99e24a5cfa24703ebc42f
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [4.1.9]
7
+ - print Command failed if task fails
8
+
6
9
  ## [4.1.8]
7
10
  - Merge pull request #59 from everplays/58-ability-to-wait-for-one-off-task-to-finish
8
11
  - Merge pull request #60 from tongueroo/wait-exit-code
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ufo (4.1.8)
4
+ ufo (4.1.9)
5
5
  aws-sdk-cloudformation
6
6
  aws-sdk-cloudwatchlogs
7
7
  aws-sdk-ec2
@@ -210,7 +210,12 @@ module Ufo
210
210
  puts
211
211
  container = ecs.describe_tasks(cluster: @cluster, tasks: [task_arn]).tasks[0].containers[0]
212
212
 
213
- container.exit_code.nil? ? 1 : container.exit_code
213
+ if container.exit_code.nil?
214
+ puts "Command failed!".colorize(:red)
215
+ 1
216
+ else
217
+ container.exit_code
218
+ end
214
219
  rescue Aws::Waiters::Errors::WaiterFailed
215
220
  puts "It took longer than #{options[:timeout]} seconds to run #{command_in_human_readable_form} (#{task_arn})"
216
221
  exit 1
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "4.1.8"
2
+ VERSION = "4.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.8
4
+ version: 4.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen