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
6 7 8 9 |
# File 'lib/awspec/helper/finder/ecr.rb', line 6 def find_ecr_repository(repository_name) res = ecr_client.describe_repositories(repository_names: [repository_name]) res.repositories.first if res.repositories.count == 1 end |
#get_policy_text(repository_name) ⇒ Object
11 12 13 |
# File 'lib/awspec/helper/finder/ecr.rb', line 11 def get_policy_text(repository_name) res = ecr_client.get_repository_policy(repository_name: repository_name)[:policy_text] end |