Sha256: 7a86ba25ffc2b3283ac18b5ef77726bb414d1092227fe7c17d80a8f8a2c81dd0
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 Bytes
Contents
module Awspec::Type class LaunchConfiguration < Base def initialize(id) super @resource_via_client = find_launch_configuration(id) @id = @resource_via_client[:launch_configuration_arn] if @resource_via_client end def has_security_group?(sg_id) sgs = @resource_via_client[:security_groups] ret = sgs.find do |sg| sg == sg_id end return true if ret sg2 = find_security_group(sg_id) sgs.find do |sg| sg == sg2[:group_id] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems