class Builderator::Model::Cleaner::ScalingGroups
AutoScaling Group Resoruces
Constants
- PROPERTIES
Attributes
resources[R]
Public Instance Methods
fetch()
click to toggle source
# File lib/builderator/model/cleaner/scaling_groups.rb, line 21 def fetch @resources = {}.tap do |i| Util.asg.describe_auto_scaling_groups.each do |page| page.auto_scaling_groups.each do |a| properties = Util.from_tags(a.tags) properties['creation_date'] = a.created_time.to_datetime PROPERTIES.each { |pp| properties[pp] = a[pp.to_sym] } i[a.launch_configuration_name] = { :id => a.auto_scaling_group_name, :properties => properties, :config => a.launch_configuration_name } end end end end
launch_configs()
click to toggle source
# File lib/builderator/model/cleaner/scaling_groups.rb, line 39 def launch_configs resources.values.map { |g| g[:config] } end