Class: Aws::ECR::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/awsclean/aws_extensions.rb

Instance Method Summary collapse

Instance Method Details

#describe_all_repositoriesObject


49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/awsclean/aws_extensions.rb', line 49

def describe_all_repositories
  repositories = []
  next_token   = nil

  loop do
    res = describe_repositories(next_token: next_token)
    repositories << res.repositories
    next_token    = res.next_token
    break unless next_token
  end

  Types::DescribeRepositoriesResponse.new(
    repositories: repositories.flatten
  )
end