Method: Stax::Stack#resources

Defined in:
lib/stax/stack/resources.rb

#resourcesObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/stax/stack/resources.rb', line 18

def resources
  print_table stack_resources.tap { |resources|
    if options[:match]
      m = Regexp.new(options[:match], Regexp::IGNORECASE)
      resources.select! { |r| m.match(r.resource_type) }
    end
  }.map { |r|
    [r.logical_resource_id, r.resource_type, color(r.resource_status, Aws::Cfn::COLORS), r.physical_resource_id]
  }
end