cfn-status 0.4.5 → 0.4.6

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: 7b8d3f2b5eaaab5d41d434b53fdb4ed16337bac065772db5efd0da6869f03d7c
4
- data.tar.gz: 7412b786f0ab988f2c20100222026a13fa8cd1385742efc2cc074d6bfb319925
3
+ metadata.gz: d783959f733a3175c56612fc8b1f9be8124f4c21fc591d87df3fc2457b57040f
4
+ data.tar.gz: c78bffbbfd322f25fa4b6c00ed8b0c98e386dac24042bfec825d409e2e4ea357
5
5
  SHA512:
6
- metadata.gz: 1b32d13db397770b601204ec8c9dcc33d28c0f7671863d84a8e3e225adfd2feb5674eba8ff06e808cb8399f5452e3fb9b3d9f267cc4b90288da0e02c16ea5604
7
- data.tar.gz: 97dfb7f30531b3269c255af4d892e4c67084cc6c21670adc43efa48c5927088317983fdfe00888ee29a5a3395fbfb3c162c632aba34470aa67b7b1056875b6aa
6
+ metadata.gz: a2a89727d0321574dda3f212dbdfeff7ffae32ae3621de889191f6632d8b1aae8c98dd5f8b16c32c80789864fe0d63665fca304831c07e2bc015c5db310e6c34
7
+ data.tar.gz: e691c6788d1a5400d80e4e2ff01157dd80985f0464c58118cf78e04364bf055f24784cc662d93f72237d415f497c0d0eb1ec0b7a3c24872f903fec4eff5c6e43
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely* adheres to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.4.6] - 2022-02-21
7
+ - show took time for deletion also
8
+
6
9
  ## [0.4.5] - 2022-02-20
7
10
  - [#5](https://github.com/tongueroo/cfn-status/pull/5) cfn-status retry options
8
11
 
@@ -1,3 +1,3 @@
1
1
  class CfnStatus
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
data/lib/cfn_status.rb CHANGED
@@ -66,6 +66,7 @@ class CfnStatus
66
66
 
67
67
  if @stack_deletion_completed
68
68
  puts "Stack #{@stack_name} deleted."
69
+ show_took(start_time)
69
70
  return
70
71
  end
71
72
 
@@ -82,11 +83,15 @@ class CfnStatus
82
83
  end
83
84
 
84
85
  return if @hide_time_took # set in run
85
- took = Time.now - start_time
86
- puts "Time took: #{pretty_time(took).color(:green)}."
86
+ show_took(start_time)
87
87
  success?
88
88
  end
89
89
 
90
+ def show_took(start_time)
91
+ took = Time.now - start_time
92
+ puts "Time took: #{pretty_time(took).color(:green)}"
93
+ end
94
+
90
95
  def completed
91
96
  last_event_status =~ /(_COMPLETE|_FAILED)$/ &&
92
97
  @events[0]["logical_resource_id"] == @stack_name &&
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-20 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-cloudformation