Sha256: 0b3231f84bad26ec95fdb4e09b759cfc5ca9bc54df4cf002a5d513bcfb6e1b97
Contents?: true
Size: 571 Bytes
Versions: 5
Compression:
Stored size: 571 Bytes
Contents
module Awspec::Type class AutoscalingGroup < Base def resource_via_client @resource_via_client ||= find_autoscaling_group(@display_name) end def id @id ||= resource_via_client.auto_scaling_group_arn if resource_via_client end def has_elb?(name) resource_via_client.load_balancer_names.find do |lb_name| lb_name == name end end def has_ec2?(id) ec2 = find_ec2(id) resource_via_client.instances.find do |instance| instance.instance_id = ec2.instance_id end if ec2 end end end
Version data entries
5 entries across 5 versions & 1 rubygems