From 2cb4b7a249fff67b2c480435f14104e2f5dcca6c Mon Sep 17 00:00:00 2001 From: "geemus (Wesley Beary)" Date: Tue, 30 Mar 2010 21:04:27 -0700 Subject: [PATCH] [s3] move options stuff to correct place in files --- lib/fog/aws/models/s3/files.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/fog/aws/models/s3/files.rb b/lib/fog/aws/models/s3/files.rb index 69e344b4a..cbd6d3987 100644 --- a/lib/fog/aws/models/s3/files.rb +++ b/lib/fog/aws/models/s3/files.rb @@ -16,6 +16,13 @@ module Fog model Fog::AWS::S3::File def all(options = {}) + options = { + 'delimiter' => @delimiter, + 'marker' => @marker, + 'max-keys' => @max_keys, + 'prefix' => @prefix + }.merge!(options) + options = options.reject {|key,value| value.nil? || value.to_s.empty?} merge_attributes(options) parent = directory.collection.get( directory.name, @@ -33,13 +40,6 @@ module Fog end def get(key, options = {}, &block) - options = { - 'delimiter' => @delimiter, - 'marker' => @marker, - 'max-keys' => @max_keys, - 'prefix' => @prefix - }.merge!(options) - options = options.reject {|key,value| value.nil? || value.to_s.empty?} data = connection.get_object(directory.name, key, options, &block) file_data = { :body => data.body,