Sha256: e6eb654e1e27e0b3ff997f4f5595090c85249fbff8884d691cfa05c98bed98e7

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

module Cfer
  module Auster
    module AwsUtils
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
auster-0.4.0 lib/cfer/auster/aws_utils.rb
auster-0.3.1 lib/cfer/auster/aws_utils.rb