knife-cloudformation 0.2.14 → 0.2.16

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: b30587ee32086876e78507495f1b16ceff7313c0
4
- data.tar.gz: 996465e857261b97b0e5c095793a77a8f95058f1
3
+ metadata.gz: 8f6138fcf5ddcc304b7478dd147ef1e695604947
4
+ data.tar.gz: fb547147dced569d4069d8a9cfca9a356c52ce09
5
5
  SHA512:
6
- metadata.gz: bcdf25a7f2ff0749235cf6069c3614e4e01a39464be4d403f64ef886f07c3e060d0930516a99ad24f59c9f6ea1b5971457d69dbfcdc845d016495dbee1e74489
7
- data.tar.gz: d91141b3eecffb0a776090e52b88ced51fd87a9bf515763635e11cbdd0a307e4d19b595b2e948626a265bb0d5cbc4e4b2100f0bb60440632e0a37555a41e7974
6
+ metadata.gz: 68cb17f7dc76e7787264d7c78ef09d1c463539604ffc7c44491df1307f369caea038c939f899dfb6663a8a72a7ecd13b3ab3d45dcb3536991bc570777ec09eb9
7
+ data.tar.gz: 310afcce101083ac2c494eb4c2539404513f1eeb688abd6b0b0b68af19f4d3435956fa779f086badccc07f924f2de30ad879babf2cd40808e5a6d417770b2d18
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.16
2
+ * Fix broken validation command (#12 thanks @JonathanSerafini)
3
+ * Pad stack name indexes when unpacked
4
+
1
5
  ## v0.2.14
2
6
  * Pass command configuration through when unpacking
3
7
  * Force stack list reload prior to polling to prevent lookup errors
@@ -14,6 +14,7 @@ class Chef
14
14
 
15
15
  def _run
16
16
  file = load_template_file
17
+ file.delete('sfn_nested_stack')
17
18
  ui.info "#{ui.color('Cloud Formation Validation: ', :bold)} #{Chef::Config[:knife][:cloudformation][:file].sub(Dir.pwd, '').sub(%r{^/}, '')}"
18
19
  file = KnifeCloudformation::Utils::StackParameterScrubber.scrub!(file)
19
20
  file = translate_template(file)
@@ -69,7 +69,7 @@ module KnifeCloudformation
69
69
 
70
70
  file['Resources'].each do |stack_resource_name, stack_resource|
71
71
 
72
- nested_stack_name = "#{name}#{UNPACK_NAME_JOINER}#{stack_count}-#{stack_resource_name}"
72
+ nested_stack_name = "#{name}#{UNPACK_NAME_JOINER}#{Kernel.sprintf('%0.3d', stack_count)}-#{stack_resource_name}"
73
73
  nested_stack_template = stack_resource['Properties']['Stack']
74
74
  Chef::Config[:knife][:cloudformation][:options] = orig_options.dup
75
75
 
@@ -84,6 +84,7 @@ module KnifeCloudformation
84
84
  end
85
85
  Chef::Config[:knife][:cloudformation][:template] = nil
86
86
  provider.connection.stacks.reload
87
+ stack_count += 1
87
88
 
88
89
  end
89
90
 
@@ -1,4 +1,4 @@
1
1
  module KnifeCloudformation
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.2.14')
3
+ VERSION = Gem::Version.new('0.2.16')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-cloudformation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-15 00:00:00.000000000 Z
11
+ date: 2015-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef