cfndsl 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cfndsl/JSONable.rb +16 -0
  2. metadata +2 -2
@@ -4,6 +4,13 @@ require 'cfndsl/RefCheck'
4
4
  module CfnDsl
5
5
  module Functions
6
6
 
7
+ def Tag(key, value)
8
+ ##
9
+ # Equivalent to the CloudFormation template built in tag object
10
+ TagDefinition.new(key, value)
11
+ end
12
+
13
+
7
14
  def Ref(value)
8
15
  ##
9
16
  # Equivalent to the CloudFormation template built in function Ref
@@ -179,5 +186,14 @@ module CfnDsl
179
186
  [@Ref]
180
187
  end
181
188
  end
189
+
190
+ class TagDefinition < JSONable
191
+ #
192
+ # Handles the Tag objects
193
+ def initialize( key, value )
194
+ @Key = key
195
+ @Value = value
196
+ end
197
+ end
182
198
 
183
199
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-15 00:00:00.000000000 Z
12
+ date: 2013-05-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: DSL for creating AWS Cloudformation templates
15
15
  email: chris@howeville.com