Module: Awspec::Helper::Finder::Ecr

Included in:
Awspec::Helper::Finder
Defined in:
lib/awspec/helper/finder/ecr.rb

Instance Method Summary collapse

Instance Method Details

#find_ecr_repository(repository_name) ⇒ Object



4
5
6
7
# File 'lib/awspec/helper/finder/ecr.rb', line 4

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