Sha256: 434efc2ed4532c1477db59a8f7a5f5fc790e03976760b4626b5777d07fd06c10
Contents?: true
Size: 553 Bytes
Versions: 19
Compression:
Stored size: 553 Bytes
Contents
module Riak class ListBuckets def initialize(client, options, block) @client = client @block = block @options = options perform_request end def perform_request @client.backend do |be| be.list_buckets @options, &wrapped_block end end private def wrapped_block proc do |bucket_names| next if bucket_names.nil? bucket_names.each do |bucket_name| bucket = @client.bucket bucket_name @block.call bucket end end end end end
Version data entries
19 entries across 19 versions & 2 rubygems