cfn-status 0.4.2 → 0.4.3

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: 8cfa3f286eb58e4b6178a1e5b91ae3ad1377c938e431afec5c62604ade1ae690
4
- data.tar.gz: 8726add33467c6fa4f27297579f59e1daa392ea39ebdeed2141bd457c3ea990b
3
+ metadata.gz: 154b5d15f93d77c109df45509a391310485430fe542f7d66f2f431ec73cdfd09
4
+ data.tar.gz: 7205fc07760831619538f468574c245010d8b4abe28eb33f64c60db94b04a1e9
5
5
  SHA512:
6
- metadata.gz: 9e320d27a72fb9c8b644443ae7774ea3c8d0c8862905a2ac75b405fc02e82c2d02c801c78b5602ce311bb8706ffc436f34a98fcdc7f445dc31c57edfc8649134
7
- data.tar.gz: 25feec8075d4575ddec75f57531790a634b57e1bfce690e61cb24882505d390051a53f4304b19a0d7eb0096a975284c29aefa17bae41d62632e569de30ec9e5b
6
+ metadata.gz: 93c77d9e09eb0a67e3fca9012779b878332f7674fbdcc97b02e930df42656ac8583a4e3890f28beb9e3064f32468adfa27646fd63addb7cdd7b86ffb204b820a
7
+ data.tar.gz: 0b5cddb879782ba4c46900c4b8cecb42086a04c44b48e8d51214f04405d6e8108331f2feae45125b1357733b0bb8d55abc8b243e6a3c748cc01c7c2f83f1ca71
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.3] - 2021-05-27
7
+ - [#4](https://github.com/tongueroo/cfn-status/pull/4) fix current status message
8
+
6
9
  ## [0.4.2]
7
10
  - #3 improve messaging when wait called directly. dont show old events.
8
11
 
data/lib/cfn_status.rb CHANGED
@@ -7,11 +7,13 @@ class CfnStatus
7
7
  autoload :AwsService, "cfn_status/aws_service"
8
8
  include AwsService
9
9
 
10
- attr_reader :events
10
+ attr_reader :events, :stack
11
11
  def initialize(stack_name, options={})
12
12
  @stack_name = stack_name
13
13
  @options = options
14
14
  @cfn = options[:cfn] # allow use of different cfn client. can be useful multiple cfn clients and with different regions
15
+ resp = cfn.describe_stacks(stack_name: @stack_name)
16
+ @stack = resp.stacks.first
15
17
  reset
16
18
  end
17
19
 
@@ -37,8 +39,6 @@ class CfnStatus
37
39
  end
38
40
 
39
41
  def in_progress?
40
- resp = cfn.describe_stacks(stack_name: @stack_name)
41
- stack = resp.stacks.first
42
42
  in_progress = stack.stack_status =~ /_IN_PROGRESS$/
43
43
  !!in_progress
44
44
  end
@@ -1,3 +1,3 @@
1
1
  class CfnStatus
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
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.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-24 00:00:00.000000000 Z
11
+ date: 2021-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-cloudformation
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.1.2
111
+ rubygems_version: 3.2.5
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: CloudFormation status library