stax 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06f8aeb89322dc7d31c7b5bdc699520b29b4d640940e7779e2ba2f77de75e601
4
- data.tar.gz: 8166f68815882ecd5dd364833b0acb84191e3c134b887cea891303f096ce2a27
3
+ metadata.gz: daa2ae503ec8909fb57950ba02352d7033c873ff63fc5a08207928e3f29b4d4e
4
+ data.tar.gz: cbc13dd13f029732d862dc5ee0039c7376504f41149631953ca5409602c7f9ff
5
5
  SHA512:
6
- metadata.gz: 03dd97bda322adaeef60bc55160d1b09975e142902720e7b17954174a727d839877e3c4239bbc793db7bcb21ab06b555698ac1e96be80b1eb726b5e3fcd96caf
7
- data.tar.gz: a13960b0bc841d7d9da7fba25820b520a1deab724828387a3a6a09a04e1bb082cac578b129cf8a380b1b653c55fb3353e0121a7db17f6f0eefd757d7e15fbca6
6
+ metadata.gz: e77072ecc286aa946a1683d35cbf01300e0f53d55fd67abbad9f726ea5e2f72e979e6e23777523d42fa15a5f9ef9acc64e480caee1f74d142cf80596ed7b0ad2
7
+ data.tar.gz: 341e1d82b351ed5b7f70363235003dc59d466ffb08b88a1a046e64c56b2eab602d5e79e76354c2d0f60d51c3820a7fb65d906b6dbe867c8d6ad090856231e212
data/bin/stax CHANGED
@@ -3,4 +3,8 @@ require 'bundler/setup'
3
3
  require 'stax'
4
4
 
5
5
  Stax.load_staxfile
6
- Stax::Cli.start(ARGV)
6
+ begin
7
+ Stax::Cli.start(ARGV)
8
+ rescue Aws::CloudFormation::Errors::ExpiredToken => e
9
+ abort(e.message)
10
+ end
@@ -61,7 +61,9 @@ module Stax
61
61
  last_seen = events.first.event_id
62
62
  end
63
63
 
64
- break if Aws::Cfn.describe(stack_name).stack_status.end_with?('COMPLETE', 'FAILED')
64
+ ## get stack status and break if stack gone, or delete complete/failed
65
+ s = Aws::Cfn.describe(stack_name)
66
+ break if s.nil? || s.stack_status.end_with?('COMPLETE', 'FAILED')
65
67
  end
66
68
  rescue ::Aws::CloudFormation::Errors::ValidationError => e
67
69
  puts e.message
@@ -215,6 +215,18 @@ module Stax
215
215
  puts cfn_template
216
216
  end
217
217
 
218
+ desc 'continue', 'continue failed rollback'
219
+ method_option :skip, type: :array, default: nil, description: 'resources to skip'
220
+ def continue
221
+ Aws::Cfn.client.continue_update_rollback(
222
+ stack_name: stack_name,
223
+ resources_to_skip: options[:skip],
224
+ )
225
+ tail
226
+ rescue ::Aws::CloudFormation::Errors::ValidationError => e
227
+ fail_task(e.message)
228
+ end
229
+
218
230
  desc 'protection', 'show/set termination protection for stack'
219
231
  method_option :enable, aliases: '-e', type: :boolean, default: nil, desc: 'enable termination protection'
220
232
  method_option :disable, aliases: '-d', type: :boolean, default: nil, desc: 'disable termination protection'
data/lib/stax/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Stax
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-03 00:00:00.000000000 Z
11
+ date: 2019-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -270,7 +270,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  requirements: []
273
- rubygems_version: 3.0.3
273
+ rubyforge_project:
274
+ rubygems_version: 2.7.6
274
275
  signing_key:
275
276
  specification_version: 4
276
277
  summary: Control Cloudformation stack and other stuff.