Sha256: 1c63ddf686a24be56b629f8b9937838b8da73ec96aca4573e2ae82cc9b7a0f24
Contents?: true
Size: 581 Bytes
Versions: 5
Compression:
Stored size: 581 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
5 entries across 5 versions & 1 rubygems