Sha256: 0a6c4f41a7f23f0ec6de7e5c25235f4659155706674ef9b30e2477b51a77a9e9

Contents?: true

Size: 423 Bytes

Versions: 11

Compression:

Stored size: 423 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
awspec-1.25.1 lib/awspec/helper/finder/ecr.rb
awspec-1.25.0 lib/awspec/helper/finder/ecr.rb
awspec-1.24.4 lib/awspec/helper/finder/ecr.rb
awspec-1.24.3 lib/awspec/helper/finder/ecr.rb
awspec-1.24.2 lib/awspec/helper/finder/ecr.rb
awspec-1.24.1 lib/awspec/helper/finder/ecr.rb
awspec-1.24.0 lib/awspec/helper/finder/ecr.rb
awspec-1.23.0 lib/awspec/helper/finder/ecr.rb
awspec-1.22.1 lib/awspec/helper/finder/ecr.rb
awspec-1.22.0 lib/awspec/helper/finder/ecr.rb
awspec-1.21.1 lib/awspec/helper/finder/ecr.rb