Sha256: a2ccda874436b943f7668f5abb3c2f686002ceb373320adbd7e5acc458ea95f9

Contents?: true

Size: 436 Bytes

Versions: 103

Compression:

Stored size: 436 Bytes

Contents

module Awspec::Type
  class Eip < ResourceBase
    def resource_via_client
      @resource_via_client ||= select_eip_by_public_ip(@display_name)
    end

    def id
      @id ||= resource_via_client.last.public_ip if resource_via_client
    end

    def associated_to?(instance_id)
      return false unless resource_via_client.last.instance_id == instance_id
      resource_via_client.last.instance_id == instance_id
    end
  end
end

Version data entries

103 entries across 103 versions & 4 rubygems

Version Path
awspec-1.25.1 lib/awspec/type/eip.rb
awspec-1.25.0 lib/awspec/type/eip.rb
awspec-1.24.4 lib/awspec/type/eip.rb
awspec-1.24.3 lib/awspec/type/eip.rb
awspec-1.24.2 lib/awspec/type/eip.rb
awspec-1.24.1 lib/awspec/type/eip.rb
awspec-1.24.0 lib/awspec/type/eip.rb
awspec-1.23.0 lib/awspec/type/eip.rb
awspec-1.22.1 lib/awspec/type/eip.rb
awspec-1.22.0 lib/awspec/type/eip.rb
awspec-1.21.1 lib/awspec/type/eip.rb
awspec-1.21.0 lib/awspec/type/eip.rb
awspec-1.20.0 lib/awspec/type/eip.rb
awspec-1.19.2 lib/awspec/type/eip.rb
awspec-1.19.1 lib/awspec/type/eip.rb
awspec-1.19.0 lib/awspec/type/eip.rb
cthiesfork-awspec-1.2.4 lib/awspec/type/eip.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/type/eip.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/type/eip.rb
awspec-1.18.6 lib/awspec/type/eip.rb