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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8876df582be39f256601ca2194db3405936c941a
4
- data.tar.gz: 2fe2e643711d1a26327553436d95c45b28632107
3
+ metadata.gz: b15b3c213315ed742f352355a160fef24a34caf9
4
+ data.tar.gz: eb14df333ca82b033edfc5f9c01c86bafd6f52fa
5
5
  SHA512:
6
- metadata.gz: f96a60535eb7da50a6b7e21f38670a58186f8b7b8e09c33c44f638d4e333dfa2c951c8a20b96b361013b89f79ee147498c04cbd8056935c64d1363d852cc0c5c
7
- data.tar.gz: df0e8ec6cfaa0497aa90bf8fa1d7eb68fa154133ab67ff1941ca1eaa8beb759d72b08bf14bb9db6de40dc61f853cf26e66c13535ab06e4378441fa8199a0ad26
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)
@@ -15,7 +15,7 @@
15
15
  module Cfn
16
16
  module Ruby
17
17
  module Dsl
18
- VERSION = "1.0.0"
18
+ VERSION = "1.0.1"
19
19
  end
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-ruby-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Smith