lib/cfndsl/JSONable.rb in cfndsl-0.0.10 vs lib/cfndsl/JSONable.rb in cfndsl-0.0.11
- old
+ new
@@ -2,10 +2,17 @@
require 'cfndsl/RefCheck'
module CfnDsl
module Functions
+ def Tag(key, value)
+ ##
+ # Equivalent to the CloudFormation template built in tag object
+ TagDefinition.new(key, value)
+ end
+
+
def Ref(value)
##
# Equivalent to the CloudFormation template built in function Ref
RefDefinition.new(value)
end
@@ -175,9 +182,18 @@
@Ref = value
end
def get_references()
[@Ref]
+ end
+ end
+
+ class TagDefinition < JSONable
+ #
+ # Handles the Tag objects
+ def initialize( key, value )
+ @Key = key
+ @Value = value
end
end
end