Class: CfnDsl::ResourceDefinition

Inherits:
JSONable
  • Object
show all
Defined in:
lib/cfndsl.rb

Instance Method Summary collapse

Methods inherited from JSONable

#declare, #ref_children, #to_json

Methods included from Functions

#FnBase64, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnJoin, #Ref

Methods included from RefCheck

#ref_children, #references

Instance Method Details

#get_referencesObject



320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'lib/cfndsl.rb', line 320

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