Method: S3ListBuckets::Runner#promise
- Defined in:
- lib/s3-list-buckets/runner.rb
#promise ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/s3-list-buckets/runner.rb', line 18 def promise Rosarium::Promise.execute do @config.s3_client.list_buckets end.then do |response| # list_buckets doesn't paginate so this is relatively simple Rosarium::Promise.all( response.buckets.map {|bucket| promise_bucket bucket}.reject &:nil? ) end end |