Sha256: b750cad7556387bf47b30563420a36d7d0ece098626bdd64400a8c6b2d85d809

Contents?: true

Size: 454 Bytes

Versions: 12

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Awspec::Helper
  module Finder
    module Ecr
      def find_ecr_repository(repository_name)
        res = ecr_client.describe_repositories(repository_names: [repository_name])
        res.repositories.first if res.repositories.count == 1
      end

      def get_policy_text(repository_name)
        res = ecr_client.get_repository_policy(repository_name: repository_name)[:policy_text]
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
awspec-1.30.0 lib/awspec/helper/finder/ecr.rb
awspec-1.29.3 lib/awspec/helper/finder/ecr.rb
awspec-1.29.2 lib/awspec/helper/finder/ecr.rb
awspec-1.29.1 lib/awspec/helper/finder/ecr.rb
awspec-1.29.0 lib/awspec/helper/finder/ecr.rb
awspec-1.28.2 lib/awspec/helper/finder/ecr.rb
awspec-1.28.1 lib/awspec/helper/finder/ecr.rb
awspec-1.28.0 lib/awspec/helper/finder/ecr.rb
awspec-1.27.1 lib/awspec/helper/finder/ecr.rb
awspec-1.27.0 lib/awspec/helper/finder/ecr.rb
awspec-1.26.0 lib/awspec/helper/finder/ecr.rb
awspec-1.25.2 lib/awspec/helper/finder/ecr.rb