lono 2.0.3 → 2.0.4
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 +4 -0
- data/bin/lono +6 -0
- data/lib/lono/cfn/diff.rb +5 -0
- data/lib/lono/cfn/preview.rb +7 -6
- data/lib/lono/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ab0ce183e26fd93e33dac3fc810ecdd793bd1f3
|
4
|
+
data.tar.gz: ec9433a8e3fbe00c86463f76305695790e7c3d84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b4b9697089c8449295e72dad1e953072c0ea2edf3aff8bd54f7c5898e3bb1121a67d0ff99d52d55bf6e5f423f0a6db7d7e225f077fab4879451d1a2f35fe5a1
|
7
|
+
data.tar.gz: 362c8b9f3f4cac0537c48a19cab94b4867b9613245230532a4a2296786a6185b79e4ff12345ba5f3e03ac54a513294a0c4a5ce037287900ded29ad133bf03390
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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
|
+
## [2.0.4]
|
7
|
+
- cfn preview: exit gracefully when stack doesnt exist
|
8
|
+
- exit gracefully with ctrl-c
|
9
|
+
|
6
10
|
## [2.0.3]
|
7
11
|
- fix param generation with cfn preview when stack name is different from param name
|
8
12
|
|
data/bin/lono
CHANGED
data/lib/lono/cfn/diff.rb
CHANGED
@@ -2,6 +2,11 @@ class Lono::Cfn::Diff < Lono::Cfn::Base
|
|
2
2
|
include Lono::Cfn::AwsServices
|
3
3
|
|
4
4
|
def run
|
5
|
+
unless stack_exists?(@stack_name)
|
6
|
+
puts "WARN: Cannot create a diff for the stack because the #{@stack_name} does not exists.".colorize(:yellow)
|
7
|
+
return
|
8
|
+
end
|
9
|
+
|
5
10
|
if @options[:noop]
|
6
11
|
puts "NOOP Generating CloudFormation source code diff..."
|
7
12
|
else
|
data/lib/lono/cfn/preview.rb
CHANGED
@@ -5,20 +5,20 @@ class Lono::Cfn::Preview < Lono::Cfn::Base
|
|
5
5
|
puts "NOOP CloudFormation preview for #{@stack_name} update"
|
6
6
|
else
|
7
7
|
params = generate_all
|
8
|
-
preview_change_set(params)
|
9
|
-
delete_change_set
|
8
|
+
success = preview_change_set(params)
|
9
|
+
delete_change_set if success && !@options[:keep] # Clean up and delete the change set
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
13
|
def preview_change_set(params)
|
14
|
-
create_change_set(params)
|
15
|
-
display_change_set
|
14
|
+
success = create_change_set(params)
|
15
|
+
display_change_set if success
|
16
16
|
end
|
17
17
|
|
18
18
|
def create_change_set(params)
|
19
19
|
unless stack_exists?(@stack_name)
|
20
|
-
puts "Cannot create a change set for the stack because the #{@stack_name} does not exists."
|
21
|
-
return
|
20
|
+
puts "WARN: Cannot create a change set for the stack because the #{@stack_name} does not exists.".colorize(:yellow)
|
21
|
+
return false
|
22
22
|
end
|
23
23
|
exist_unless_updatable(stack_status(@stack_name))
|
24
24
|
|
@@ -39,6 +39,7 @@ class Lono::Cfn::Preview < Lono::Cfn::Base
|
|
39
39
|
# raise
|
40
40
|
# end
|
41
41
|
# end
|
42
|
+
true
|
42
43
|
end
|
43
44
|
|
44
45
|
def display_change_set
|
data/lib/lono/version.rb
CHANGED