Sha256: 71eaf597666b105bee34ddaeca9935c535068d3d387e8756dd051083a5a6826f

Contents?: true

Size: 474 Bytes

Versions: 5

Compression:

Stored size: 474 Bytes

Contents

module Awspec::Type
  class Efs < Base
    def initialize(file_system_id)
      super
      @display_name = file_system_id
    end

    def resource_via_client
      @resource_via_client ||= find_efs(@display_name)
    end

    def id
      @id ||= resource_via_client.file_system_id if resource_via_client
    end

    def has_tag?(tag_key, tag_value)
      tag = find_efs_tags(@display_name, tag_key)
      return nil if tag.value != tag_value
      tag
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
awspec-0.69.1 lib/awspec/type/efs.rb
awspec-0.69.0 lib/awspec/type/efs.rb
awspec-0.68.0 lib/awspec/type/efs.rb
awspec-0.67.1 lib/awspec/type/efs.rb
awspec-0.67.0 lib/awspec/type/efs.rb