From c7f1ed5ba368807e8d2f1c949dde2cf0a9f97a9a Mon Sep 17 00:00:00 2001 From: Wesley Beary Date: Sun, 7 Jun 2009 00:54:22 -0700 Subject: [PATCH] option keys should be symbols for consistency --- lib/fog/aws/s3.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/fog/aws/s3.rb b/lib/fog/aws/s3.rb index 628bd7ffd..d1dcf3811 100644 --- a/lib/fog/aws/s3.rb +++ b/lib/fog/aws/s3.rb @@ -62,13 +62,15 @@ module Fog # ==== Parameters # bucket_name<~String>:: name of bucket to list object keys from # options<~Hash>:: config arguments for list. Defaults to {}. - # 'prefix' limits object keys to those beginning with its value. - # 'marker' limits object keys to only those that appear + # :prefix limits object keys to those beginning with its value. + # :marker limits object keys to only those that appear # lexicographically after its value. - # 'max-keys' limits number of object keys returned - # 'delimiter' causes keys with the same string between the prefix + # :maxkeys limits number of object keys returned + # :delimiter causes keys with the same string between the prefix # value and the first occurence of delimiter to be rolled up def get_bucket(bucket_name, options = {}) + options['max-keys'] = options.delete(:maxkeys) if options[:maxkeys] + params.delete_if {} query = '?' options.each do |key, value| query << "#{key}=#{value};"