cloudformation-ruby-dsl 0.4.13 → 0.4.14

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: 678a2f4ff5840cbb0f38f8f4fc57ba551a2766e1
4
- data.tar.gz: 7ccb03b36234df337eeacc80e56b16a6be9e4523
3
+ metadata.gz: 43b15a686475d1acda20a772af580ab8804c27f8
4
+ data.tar.gz: 39959482afcaaf2ac04940e0e3aab6f666fb5257
5
5
  SHA512:
6
- metadata.gz: 56ee4564fe8f278a2a124b0adbc2d06da0248e1ad29c10109c284eacd58a02cf2e93967bde3d2dc3e71a331669beba3f458edc47658cb9a2fde54699e916869a
7
- data.tar.gz: d63db9972aaa9b1879805742203c0995968280c5d7bb9e23b42c45eab3530be164c3ed8e6a5ef97630d1ae37c022e39d950c4a03d0223f195982aa62d027d0b1
6
+ metadata.gz: 7ffa2dbb8e19ef047f9601c7113bbdd69667cc3a266d6a3eeb6d59696d8cd969fdc9ef180178a7236a842673b4a09d21b02f3e1851202153272b03e56fc24040
7
+ data.tar.gz: 157629facd9413ae72a00798b143173b86a12ac4ce11261feb5b8a565dff27ecfbb386be59e0285a4f9c077a08678201eca44753500ad21598a832322acb36b1
@@ -62,6 +62,13 @@ def cfn_cmd(template)
62
62
 
63
63
  # Tag CloudFormation stacks based on :Tags defined in the template
64
64
  cfn_tags = template.excise_tags!
65
+
66
+ # Can't currently support spaces because the system() call escapes them and that fouls up the CLI
67
+ unless cfn_tags.select { |i| i =~ /\s+/ }.empty?
68
+ $stderr.puts "ERROR: Tag names or values cannot currently contain spaces. Please remove spaces and try again."
69
+ exit(2)
70
+ end
71
+
65
72
  # The command line string looks like: --tag "Key=key; Value=value" --tag "Key2=key2; Value2=value"
66
73
  cfn_tags_options = cfn_tags.sort.map { |tag| ["--tag", "Key=%s; Value=%s" % tag.split('=')] }.flatten
67
74
 
@@ -15,7 +15,7 @@
15
15
  module Cfn
16
16
  module Ruby
17
17
  module Dsl
18
- VERSION = "0.4.13"
18
+ VERSION = "0.4.14"
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.13
4
+ version: 0.4.14
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: 2015-04-14 00:00:00.000000000 Z
18
+ date: 2015-04-16 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: detabulator