cloudformation-ruby-dsl 0.4.7 → 0.4.8

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: edc8c0654329cc7d730b77d8211b5293a446f379
4
- data.tar.gz: fa138bff40757e9a486d9bbba0e91877ba808e44
3
+ metadata.gz: af032998a62381c3321a94a1bfbd56ad3bbb8dfc
4
+ data.tar.gz: dc438a04e1ac528abb9bc5eb0f7c686da2f52852
5
5
  SHA512:
6
- metadata.gz: 4eb2b37a228912e225b689bfe2e03b56c06e0ad287bbab81361b5faa82a967b7f7211108e190aa5b2e90715f48813cb054230e8228562c33c1e23f2014c9086b
7
- data.tar.gz: 7135a5a46a919fc1f6207a377fe7c3770c0020a6eaf14008bf933488ff113c6e6f33c5e83a627d202a5e97eac31f2540cd17d9ee57cecaf285486fbd7cffda92
6
+ metadata.gz: 8950f2733c9bbe99a2ce49c2bda751ecf123d719f0a46bf6a467c383fe08fa1a545baef9987f13a4a7a805d05ddec7030a45676032ddfe865cd6d10f542e197d
7
+ data.tar.gz: 7192e6b5f17181445852a104886e9ca5c591579149a7e20c6ac758528e78bfe5e540a72a3fac8afd474f46153f78dd248cc90131d45dd1030f08caf2663ee409
@@ -94,6 +94,9 @@ def cfn_cmd(template)
94
94
 
95
95
  cmdline = ['cfn-cmd'] + ARGV + ['--template-file', temp_file] + cfn_tags_options
96
96
 
97
+ # Add the required default capability if no capabilities were specified
98
+ cmdline = cmdline + ['-c', 'CAPABILITY_IAM'] if not ARGV.include?('--capabilities') or ARGV.include?('-c')
99
+
97
100
  case action
98
101
  when 'diff'
99
102
  # example: <template.rb> diff my-stack-name --parameters "Env=prod" --region eu-west-1
@@ -15,7 +15,7 @@
15
15
  module Cfn
16
16
  module Ruby
17
17
  module Dsl
18
- VERSION = "0.4.7"
18
+ VERSION = "0.4.8"
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: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Smith
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2014-11-03 00:00:00.000000000 Z
18
+ date: 2015-01-06 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: detabulator