lib/cfndsl/JSONable.rb in cfndsl-0.0.11 vs lib/cfndsl/JSONable.rb in cfndsl-0.0.12
- old
+ new
@@ -1,18 +1,13 @@
require 'cfndsl/Errors'
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
-
-
+ module Functions
+ ##
+ # These functions are available anywhere inside
+ # a block for a JSONable object.
def Ref(value)
##
# Equivalent to the CloudFormation template built in function Ref
RefDefinition.new(value)
end
@@ -172,28 +167,18 @@
def ref_children
return [@argument]
end
end
-
class RefDefinition < JSONable
##
# Handles the Ref objects
def initialize( value )
@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