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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/cfn_status/version.rb +1 -1
- data/lib/cfn_status.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d783959f733a3175c56612fc8b1f9be8124f4c21fc591d87df3fc2457b57040f
|
4
|
+
data.tar.gz: c78bffbbfd322f25fa4b6c00ed8b0c98e386dac24042bfec825d409e2e4ea357
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/cfn_status/version.rb
CHANGED
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
|
-
|
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.
|
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-
|
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
|