lono-cfn 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 9c6dad389b3fefe174cc4e2b1e5e2f400e1cfe7a
4
- data.tar.gz: 551b23221bb7208f57ace0517a7b4b1e01e02b4c
3
+ metadata.gz: dba98f281ab98c5eb7332eda9a4c03b9e90813b8
4
+ data.tar.gz: ea1923322e0a914d25fc979198447c99d8c48c62
5
5
  SHA512:
6
- metadata.gz: 62cc0595fac727b77bc1152aaab946899b5d057fad75d314d16d4440c9425193d172a47c12c3aaa325071a3796f27e009e00c53766ea5c29504ad8a24514c023
7
- data.tar.gz: 6d776ab590dbc1aad9bc5ca6419726c434daffcf58ba53133a7d20ba51c2aa6d24eb960651c2e5974075268a4d6636ff388484336964f59c6687f9076c58c847
6
+ metadata.gz: 14c6d2c31564cd843ca90ed1a40a2f0d5f8f682b529d5964408b5571f167eab786c12983ba48c8d81aa68ba0c28a663ac00e1a023e6b552f105ed4082452fbc8
7
+ data.tar.gz: 1a34a56708bbd269993157d0abfc7bb67149ba7810152847bb96388205104bb41624bac8f96cdbaa2e2ec5b87a58c5703ce591a75db05747a74cdeee6729ae33
data/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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
+ ## [0.0.5] nicer error message
7
+
8
+ - nicer error message when theres no stack update to be perform
9
+
10
+ ## [0.0.4] fix region support
11
+
12
+ - use region from ~/.aws/config file instead of specifying it
13
+
6
14
  ## [0.0.3] update cli help
7
15
 
8
16
  - Update CLI help.
@@ -14,17 +14,23 @@ module LonoCfn
14
14
 
15
15
  template_body = IO.read(@template_path)
16
16
  message = "#{@stack_name} stack updating."
17
+ error = nil
17
18
  if @options[:noop]
18
19
  message = "NOOP #{message}"
19
20
  else
20
- cfn.update_stack(
21
- stack_name: @stack_name,
22
- template_body: template_body,
23
- parameters: params#,
24
- # capabilities: ["CAPABILITY_IAM"]
25
- )
21
+ begin
22
+ cfn.update_stack(
23
+ stack_name: @stack_name,
24
+ template_body: template_body,
25
+ parameters: params#,
26
+ # capabilities: ["CAPABILITY_IAM"]
27
+ )
28
+ rescue Aws::CloudFormation::Errors::ValidationError => e
29
+ puts "ERROR: #{e.message}".red
30
+ error = true
31
+ end
26
32
  end
27
- puts message unless @options[:mute]
33
+ puts message unless @options[:mute] || error
28
34
  end
29
35
  end
30
36
  end
@@ -1,3 +1,3 @@
1
1
  module LonoCfn
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono-cfn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-17 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor