Sha256: 35454264e5f816a01ad76d44fb3b697b1fb9ffed7577e8bdfb35905ae9584b09

Contents?: true

Size: 550 Bytes

Versions: 26

Compression:

Stored size: 550 Bytes

Contents

module Awspec::Type
  class LaunchConfiguration < Base
    def resource_via_client
      @resource_via_client ||= find_launch_configuration(@display_name)
    end

    def 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

26 entries across 26 versions & 1 rubygems

Version Path
awspec-0.59.0 lib/awspec/type/launch_configuration.rb
awspec-0.58.0 lib/awspec/type/launch_configuration.rb
awspec-0.57.1 lib/awspec/type/launch_configuration.rb
awspec-0.57.0 lib/awspec/type/launch_configuration.rb
awspec-0.56.1 lib/awspec/type/launch_configuration.rb
awspec-0.56.0 lib/awspec/type/launch_configuration.rb