cloudformation-ruby-dsl 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudformation-ruby-dsl/cfntemplate.rb +10 -0
- data/lib/cloudformation-ruby-dsl/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: b15b3c213315ed742f352355a160fef24a34caf9
|
4
|
+
data.tar.gz: eb14df333ca82b033edfc5f9c01c86bafd6f52fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d246665dff0d61b0a92199c2eef070f82e2f7fd5c1702552c3998675a809e40b30d7d4dfd927804331c7cf9da3897f0c7b7bcfa76a5a6a34c8000bea2e5a9597
|
7
|
+
data.tar.gz: 20ad8cb58f3bd94d8bf4639236517c0555598a181490000376f4ecf7e66444a9836da7713a2cfe480c9b56d6023270cfbc1c183a96c27ef4f2d8e8d9bf5f46f8
|
@@ -74,6 +74,16 @@ def cfn(template)
|
|
74
74
|
cfn_client = aws_cfn.cfn_client
|
75
75
|
|
76
76
|
action = ARGV[0]
|
77
|
+
deprecated = {
|
78
|
+
"cfn-validate-template" => "validate",
|
79
|
+
"cfn-create-stack" => "create",
|
80
|
+
"cfn-update-stack" => "update"
|
81
|
+
}
|
82
|
+
if deprecated.keys.include? action
|
83
|
+
replacement = deprecated[action]
|
84
|
+
$stderr.puts "WARNING: '#{action}' is deprecated and will be removed; use '#{replacement}' instead"
|
85
|
+
action = replacement
|
86
|
+
end
|
77
87
|
unless %w(expand diff validate create update).include? action
|
78
88
|
$stderr.puts "usage: #{$PROGRAM_NAME} <expand|diff|validate|create|update>"
|
79
89
|
exit(2)
|