Sha256: 6756a0de6c52051d3d1816a059e98fef6a9c2f277ee0b8c0d980cd289f7f6add

Contents?: true

Size: 525 Bytes

Versions: 34

Compression:

Stored size: 525 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

34 entries across 34 versions & 1 rubygems

Version Path
awspec-0.55.0 lib/awspec/type/launch_configuration.rb
awspec-0.54.0 lib/awspec/type/launch_configuration.rb
awspec-0.52.4 lib/awspec/type/launch_configuration.rb
awspec-0.52.3 lib/awspec/type/launch_configuration.rb
awspec-0.52.2 lib/awspec/type/launch_configuration.rb
awspec-0.52.1 lib/awspec/type/launch_configuration.rb
awspec-0.52.0 lib/awspec/type/launch_configuration.rb
awspec-0.51.0 lib/awspec/type/launch_configuration.rb
awspec-0.50.0 lib/awspec/type/launch_configuration.rb
awspec-0.49.0 lib/awspec/type/launch_configuration.rb
awspec-0.48.0 lib/awspec/type/launch_configuration.rb
awspec-0.47.0 lib/awspec/type/launch_configuration.rb
awspec-0.46.0 lib/awspec/type/launch_configuration.rb
awspec-0.45.0 lib/awspec/type/launch_configuration.rb
awspec-0.44.0 lib/awspec/type/launch_configuration.rb
awspec-0.43.0 lib/awspec/type/launch_configuration.rb
awspec-0.42.0 lib/awspec/type/launch_configuration.rb
awspec-0.41.0 lib/awspec/type/launch_configuration.rb
awspec-0.40.0 lib/awspec/type/launch_configuration.rb
awspec-0.39.0 lib/awspec/type/launch_configuration.rb