Class: CfnDsl::ResourceDefinition
- Defined in:
- lib/cfndsl/Resources.rb
Instance Method Summary collapse
Methods inherited from JSONable
#declare, #method_missing, #ref_children, #to_json
Methods included from Functions
#FnBase64, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnJoin, #Ref
Methods included from RefCheck
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CfnDsl::JSONable
Instance Method Details
#addTag(name, value, propagate = nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/cfndsl/Resources.rb', line 12 def addTag(name, value, propagate=nil) self.send(:Tag) { Key name Value value PropagateAtLaunch propagate unless propagate.nil? } end |
#get_references ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/cfndsl/Resources.rb', line 20 def get_references() refs = [] if @DependsOn then if( @DependsOn.respond_to?(:each) ) then @DependsOn.each do |dep| refs.push dep end end if( @DependsOn.instance_of?(String) ) then refs.push @DependsOn end end refs end |