Module: Cfer::Auster::AwsUtils
- Defined in:
- lib/cfer/auster/aws_utils.rb
Class Method Summary collapse
Class Method Details
.all_from_pager(operation, paged_field) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cfer/auster/aws_utils.rb', line 4 def self.all_from_pager(operation, paged_field) ret = [] resp = operation loop do ret << resp.send(paged_field) if resp.next_page? resp = resp.next_page else break end end ret.flatten end |