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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/lono_cfn/update.rb +13 -7
- data/lib/lono_cfn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dba98f281ab98c5eb7332eda9a4c03b9e90813b8
|
4
|
+
data.tar.gz: ea1923322e0a914d25fc979198447c99d8c48c62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/lono_cfn/update.rb
CHANGED
@@ -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
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
data/lib/lono_cfn/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2017-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|