Method: Jets::Stack.functions
- Defined in:
- lib/jets/stack.rb
.functions ⇒ Object
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/jets/stack.rb', line 41 def functions stack = new # All the & because resources might be nil templates = stack.resources&.map(&:template)&.select do |t| attributes = t.values.first attributes['Type'] == 'AWS::Lambda::Function' end templates ||= [] templates.map { |t| Function.new(t) } end |